mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-12 10:08:07 +00:00
remove redundant unsetenv (#947)
This commit is contained in:
@ -333,7 +333,6 @@ u8 calibrate_case(afl_state_t *afl, struct queue_entry *q, u8 *use_mem,
|
|||||||
|
|
||||||
if (afl->fsrv.support_shmem_fuzz && !afl->fsrv.use_shmem_fuzz) {
|
if (afl->fsrv.support_shmem_fuzz && !afl->fsrv.use_shmem_fuzz) {
|
||||||
|
|
||||||
unsetenv(SHM_FUZZ_ENV_VAR);
|
|
||||||
afl_shm_deinit(afl->shm_fuzz);
|
afl_shm_deinit(afl->shm_fuzz);
|
||||||
ck_free(afl->shm_fuzz);
|
ck_free(afl->shm_fuzz);
|
||||||
afl->shm_fuzz = NULL;
|
afl->shm_fuzz = NULL;
|
||||||
|
@ -2283,13 +2283,10 @@ stop_fuzzing:
|
|||||||
destroy_queue(afl);
|
destroy_queue(afl);
|
||||||
destroy_extras(afl);
|
destroy_extras(afl);
|
||||||
destroy_custom_mutators(afl);
|
destroy_custom_mutators(afl);
|
||||||
unsetenv(SHM_ENV_VAR);
|
|
||||||
unsetenv(CMPLOG_SHM_ENV_VAR);
|
|
||||||
afl_shm_deinit(&afl->shm);
|
afl_shm_deinit(&afl->shm);
|
||||||
|
|
||||||
if (afl->shm_fuzz) {
|
if (afl->shm_fuzz) {
|
||||||
|
|
||||||
unsetenv(SHM_FUZZ_ENV_VAR);
|
|
||||||
afl_shm_deinit(afl->shm_fuzz);
|
afl_shm_deinit(afl->shm_fuzz);
|
||||||
ck_free(afl->shm_fuzz);
|
ck_free(afl->shm_fuzz);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user