added missing initialisation of deleted memory before calling realloc

This commit is contained in:
csoler 2016-05-03 20:55:36 -04:00
parent 0ff2941adf
commit ca003c5f9e

View File

@ -1024,6 +1024,7 @@ RsItem *pqistreamer::addPartialPacket(const void *block, uint32_t len, uint32_t
{
std::cerr << "(WW) dropping unfinished existing packet that gets to be replaced by new starting packet." << std::endl;
free(rec.mem);
rec.mem = NULL ;
rec.size = 0 ;
}
// make sure this is a continuing packet, otherwise this is an error.