mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
fixed potential mismatch free/delete[] in distant chat
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8512 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
7f7ede0e2a
commit
962db670f1
@ -805,7 +805,7 @@ void DistantChatService::sendTurtleData(RsChatItem *item)
|
||||
if(!item->serialise(buff,rssize))
|
||||
{
|
||||
std::cerr << "(EE) DistantChatService::sendTurtleData(): Could not serialise item!" << std::endl;
|
||||
delete[] buff ;
|
||||
free(buff) ;
|
||||
delete item ;
|
||||
return ;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user