diff options
author | gregory guy <[email protected]> | 2018-09-13 16:35:48 +0200 |
---|---|---|
committer | gregory guy <[email protected]> | 2018-09-13 16:35:48 +0200 |
commit | 5117a5d105036094d7d1348ebb1f79c163b4b2ce (patch) | |
tree | 03f8ba4a0222747aff240956c118de8db2d5640d | |
parent | fcdbdffa69586a50e339d0a4aec9b75485c03214 (diff) | |
download | knights-5117a5d105036094d7d1348ebb1f79c163b4b2ce.tar.gz knights-5117a5d105036094d7d1348ebb1f79c163b4b2ce.zip |
newBuff pointer should be freed with delete[]
Signed-off-by: gregory guy <[email protected]>
-rw-r--r-- | knights/io_engine.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/knights/io_engine.cpp b/knights/io_engine.cpp index 1ecb2cc..8b3afc7 100644 --- a/knights/io_engine.cpp +++ b/knights/io_engine.cpp @@ -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') ) ) { |