mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-09 00:31:33 +00:00
fix leaks
This commit is contained in:
parent
2f41663673
commit
a24352ddfd
1
afl-cmin
1
afl-cmin
@ -1,5 +1,6 @@
|
|||||||
#!/usr/bin/env sh
|
#!/usr/bin/env sh
|
||||||
export AFL_QUIET=1
|
export AFL_QUIET=1
|
||||||
|
export ASAN_OPTIONS=detect_leaks=0
|
||||||
THISPATH=`dirname ${0}`
|
THISPATH=`dirname ${0}`
|
||||||
export PATH="${THISPATH}:$PATH"
|
export PATH="${THISPATH}:$PATH"
|
||||||
awk -f - -- ${@+"$@"} <<'EOF'
|
awk -f - -- ${@+"$@"} <<'EOF'
|
||||||
|
@ -887,3 +887,4 @@ static u64 next_p2(u64 val) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -178,3 +178,4 @@ static bool list_contains(list_t *list, void *contains_me) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -126,3 +126,4 @@ void afl_state_deinit(afl_state_t *afl) {
|
|||||||
list_remove(&afl_states, afl);
|
list_remove(&afl_states, afl);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1032,6 +1032,7 @@ int main(int argc, char** argv, char** envp) {
|
|||||||
u8 child_timed_out = fsrv->child_timed_out;
|
u8 child_timed_out = fsrv->child_timed_out;
|
||||||
afl_fsrv_deinit(fsrv);
|
afl_fsrv_deinit(fsrv);
|
||||||
free(fsrv);
|
free(fsrv);
|
||||||
|
if (stdin_file) ck_free(stdin_file);
|
||||||
|
|
||||||
exit(child_crashed * 2 + child_timed_out);
|
exit(child_crashed * 2 + child_timed_out);
|
||||||
|
|
||||||
|
@ -803,6 +803,8 @@ next_del_blksize:
|
|||||||
|
|
||||||
finalize_all:
|
finalize_all:
|
||||||
|
|
||||||
|
if (tmp_buf) ck_free(tmp_buf);
|
||||||
|
|
||||||
if (hang_mode) {
|
if (hang_mode) {
|
||||||
|
|
||||||
SAYF("\n" cGRA " File size reduced by : " cRST
|
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_shm_deinit(&shm);
|
||||||
afl_fsrv_deinit(fsrv);
|
afl_fsrv_deinit(fsrv);
|
||||||
|
if (fsrv->out_file) ck_free(fsrv->out_file);
|
||||||
free(fsrv);
|
free(fsrv);
|
||||||
|
if (mask_bitmap) ck_free(mask_bitmap);
|
||||||
|
if (in_data) ck_free(in_data);
|
||||||
|
|
||||||
exit(0);
|
exit(0);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user