diff options
author | Erwin Nindl <nine@wirdorange.org> | 2008-02-29 13:58:15 +0000 |
---|---|---|
committer | Erwin Nindl <nine@wirdorange.org> | 2008-02-29 13:58:15 +0000 |
commit | 0b07a4a6a4a2f9ea38ce76ed2ade4e475bda1719 (patch) | |
tree | 22f16377c36c88355e3d144cb425e76b623c63d9 /syncClientSocket.cpp | |
parent | fixed network prefix serialization (diff) |
delete[] bugfix in syncClientSocket.cpp,
anytunschowtables
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; } |