fix leaks

This commit is contained in:
van Hauser
2020-03-09 15:52:14 +01:00
parent 2f41663673
commit a24352ddfd
6 changed files with 10 additions and 0 deletions

View File

@ -803,6 +803,8 @@ next_del_blksize:
finalize_all:
if (tmp_buf) ck_free(tmp_buf);
if (hang_mode) {
SAYF("\n" cGRA " File size reduced by : " cRST
@ -1350,7 +1352,10 @@ int main(int argc, char** argv, char** envp) {
afl_shm_deinit(&shm);
afl_fsrv_deinit(fsrv);
if (fsrv->out_file) ck_free(fsrv->out_file);
free(fsrv);
if (mask_bitmap) ck_free(mask_bitmap);
if (in_data) ck_free(in_data);
exit(0);