about summary refs log tree commit diff
path: root/src/afl-fuzz-queue.c
diff options
context:
space:
mode:
authorDominik Maier <domenukk@gmail.com>2020-04-17 13:15:24 +0200
committerDominik Maier <domenukk@gmail.com>2020-04-17 13:15:24 +0200
commit8ecfbcdf3457ca4337dc6a0f45def33582f51a7f (patch)
treebc95eb9449952dae7c62fc3a76edf52d59925c8c /src/afl-fuzz-queue.c
parent263daaacafae423828d458c59817c5b96e4fd399 (diff)
downloadafl++-8ecfbcdf3457ca4337dc6a0f45def33582f51a7f.tar.gz
removed tmp alloc in queue
Diffstat (limited to 'src/afl-fuzz-queue.c')
-rw-r--r--src/afl-fuzz-queue.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/afl-fuzz-queue.c b/src/afl-fuzz-queue.c
index 373f12d8..96711cbc 100644
--- a/src/afl-fuzz-queue.c
+++ b/src/afl-fuzz-queue.c
@@ -275,7 +275,7 @@ void cull_queue(afl_state_t *afl) {
 
   if (afl->dumb_mode || !afl->score_changed) return;
 
-  temp_v = ck_alloc(afl->fsrv.map_size >> 3);
+  temp_v = ck_maybe_grow((void **)&afl->map_tmp_buf, &afl->map_tmp_size, afl->fsrv.map_size >> 3);
 
   afl->score_changed = 0;
 
@@ -324,8 +324,6 @@ void cull_queue(afl_state_t *afl) {
 
   }
 
-  ck_free(temp_v);
-
 }
 
 /* Calculate case desirability score to adjust the length of havoc fuzzing.