use delete to free what's allocated using new

This commit is contained in:
Eric House 2013-10-25 06:11:42 -07:00
parent a33f04e077
commit 91b54dd66a

View file

@ -1204,7 +1204,7 @@ CookieRef::storeNoAck( bool acked, uint32_t packetID, void* data )
sdata->buf, sdata->buflen );
}
free( sdata->buf );
free( sdata );
delete sdata;
}
void