newBuff pointer should be freed with delete[]

Signed-off-by: gregory guy <g-gregory@gmx.fr>
(cherry picked from commit 5117a5d105)
r14.0.x
gregory guy 6 years ago committed by Slávek Banko
parent f488cd7565
commit b1ba3b6072
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -229,7 +229,7 @@ void io_engine::Recv( TDEProcess*, char *buffer, int bufLen )
strncpy( newBuff, buffer, bufLen );
newBuff[bufLen] = 0;
FIFO_In += newBuff;
delete newBuff;
delete[] newBuff;
if( FIFO_In.contains( TQChar('\n') ) )
{

Loading…
Cancel
Save