fixed mem leak in redqueen

This commit is contained in:
Dominik Maier
2020-07-16 01:00:39 +02:00
parent 1ec2615a3e
commit a84c958647

View File

@ -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; afl->stage_cycles[STAGE_COLORIZATION] += afl->stage_cur;
ck_free(backup); ck_free(backup);
ck_free(rng);
rng = NULL;
while (ranges) { while (ranges) {
rng = ranges; rng = ranges;
@ -185,10 +188,6 @@ static u8 colorization(afl_state_t *afl, u8 *buf, u32 len, u64 exec_cksum) {
rng = NULL; rng = NULL;
} }
ck_free(rng);
rng = NULL;
// save the input with the high entropy // save the input with the high entropy
if (needs_write) { if (needs_write) {