mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-16 03:48:08 +00:00
fix memory leaks
This commit is contained in:
@ -867,7 +867,14 @@ void sync_fuzzers(afl_state_t *afl) {
|
|||||||
|
|
||||||
fault = fuzz_run_target(afl, &afl->fsrv, afl->fsrv.exec_tmout);
|
fault = fuzz_run_target(afl, &afl->fsrv, afl->fsrv.exec_tmout);
|
||||||
|
|
||||||
if (afl->stop_soon) { goto close_sync; }
|
if (afl->stop_soon) {
|
||||||
|
|
||||||
|
munmap(mem, st.st_size);
|
||||||
|
close(fd);
|
||||||
|
|
||||||
|
goto close_sync;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
afl->syncing_party = sd_ent->d_name;
|
afl->syncing_party = sd_ent->d_name;
|
||||||
afl->queued_imported += save_if_interesting(afl, mem, new_len, fault);
|
afl->queued_imported += save_if_interesting(afl, mem, new_len, fault);
|
||||||
|
@ -762,6 +762,8 @@ void afl_state_deinit(afl_state_t *afl) {
|
|||||||
afl_free(afl->in_buf);
|
afl_free(afl->in_buf);
|
||||||
afl_free(afl->in_scratch_buf);
|
afl_free(afl->in_scratch_buf);
|
||||||
afl_free(afl->ex_buf);
|
afl_free(afl->ex_buf);
|
||||||
|
afl_free(afl->alias_table);
|
||||||
|
afl_free(afl->alias_probability);
|
||||||
|
|
||||||
ck_free(afl->virgin_bits);
|
ck_free(afl->virgin_bits);
|
||||||
ck_free(afl->virgin_tmout);
|
ck_free(afl->virgin_tmout);
|
||||||
|
Reference in New Issue
Block a user