Fixed memory leak in RLE_compress() when returning without calling xfree() on variable 'pktdata'

This commit is contained in:
RElesgoe 2016-08-23 23:40:51 -07:00
parent 44cb120a8d
commit 845e659100

View file

@ -253,6 +253,7 @@ namespace pvpgn
pktlen = 0;
}
std::fprintf(stderr, "RLE_compress: wrote %u bytes (%u uncompressed)\n", actual, perceived);
xfree((void*)pktdata);
return 0;
}