ensure memory is there before free

This commit is contained in:
vanhauser-thc
2021-06-01 18:35:42 +02:00
parent db6947452c
commit e3a0ede91c

View File

@ -2663,7 +2663,12 @@ exit_its:
afl->queue_cur->colorized = CMPLOG_LVL_MAX;
ck_free(afl->queue_cur->cmplog_colorinput);
if (afl->queue_cur->cmplog_colorinput) {
ck_free(afl->queue_cur->cmplog_colorinput);
}
while (taint) {
t = taint->next;