summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgregory guy <g-gregory@gmx.fr>2018-09-13 16:35:48 +0200
committergregory guy <g-gregory@gmx.fr>2018-09-13 16:35:48 +0200
commit5117a5d105036094d7d1348ebb1f79c163b4b2ce (patch)
tree03f8ba4a0222747aff240956c118de8db2d5640d
parentfcdbdffa69586a50e339d0a4aec9b75485c03214 (diff)
downloadknights-5117a5d1.tar.gz
knights-5117a5d1.zip
newBuff pointer should be freed with delete[]
Signed-off-by: gregory guy <g-gregory@gmx.fr>
-rw-r--r--knights/io_engine.cpp2
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') ) )
{