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:
electron128 2015-06-17 10:15:25 +00:00
parent 7f7ede0e2a
commit 962db670f1

View File

@ -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 ;
}