Fix two use-after-free bugs.

This commit is contained in:
Jon Siwek 2013-09-10 13:30:23 -05:00
parent ee1312f2ad
commit 1fbeefedbc
2 changed files with 3 additions and 2 deletions

View file

@ -2575,8 +2575,8 @@ bool RemoteSerializer::SendLogCreateWriter(PeerID peer_id, EnumVal* id, EnumVal*
error:
if ( c )
{
delete c;
delete [] c->data;
delete c;
}
FatalError(io->Error());