diff options
Diffstat (limited to 'syncClientSocket.cpp')
-rw-r--r-- | syncClientSocket.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/syncClientSocket.cpp b/syncClientSocket.cpp index bdfd973..cf266ca 100644 --- a/syncClientSocket.cpp +++ b/syncClientSocket.cpp @@ -59,7 +59,7 @@ void SyncClientSocket::OnRawData(const char *buf,size_t len) tmp.write(buffer,6); tmp>>missing_chars; cLog.msg(Log::PRIO_NOTICE) << "recieved sync inforamtaion length from " << GetRemoteHostname() <<" "<<tmp.str()<<"bytes of data"<< std::endl; - delete buffer; + delete[] buffer; buffer_size_-=6; } else if(missing_chars>0 && missing_chars<=buffer_size_) @@ -74,7 +74,7 @@ void SyncClientSocket::OnRawData(const char *buf,size_t len) ia >> scom; buffer_size_-=missing_chars; missing_chars=-1; - delete buffer; + delete[] buffer; } else break; } |