Fixed memory leak in RLE_compress() when returning without calling xfree() on variable 'pktdata'
This commit is contained in:
parent
44cb120a8d
commit
845e659100
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue