aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/afl-fuzz-redqueen.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/afl-fuzz-redqueen.c b/src/afl-fuzz-redqueen.c
index a42e1b52..3f5fc23a 100644
--- a/src/afl-fuzz-redqueen.c
+++ b/src/afl-fuzz-redqueen.c
@@ -177,6 +177,9 @@ static u8 colorization(afl_state_t *afl, u8 *buf, u32 len, u64 exec_cksum) {
afl->stage_cycles[STAGE_COLORIZATION] += afl->stage_cur;
ck_free(backup);
+ ck_free(rng);
+ rng = NULL;
+
while (ranges) {
rng = ranges;
@@ -185,10 +188,6 @@ static u8 colorization(afl_state_t *afl, u8 *buf, u32 len, u64 exec_cksum) {
rng = NULL;
}
-
- ck_free(rng);
- rng = NULL;
-
// save the input with the high entropy
if (needs_write) {