fixed potential bugs

This commit is contained in:
Dominik Maier
2020-06-15 11:07:57 +02:00
parent 43bbbbf4e0
commit acb0a2f027
2 changed files with 12 additions and 8 deletions

View File

@ -180,7 +180,7 @@ static u8 colorization(afl_state_t *afl, u8 *buf, u32 len, u64 exec_cksum) {
while (ranges) {
rng = ranges;
ranges = ranges->next;
ranges = rng->next;
ck_free(rng);
rng = NULL;
@ -224,7 +224,7 @@ checksum_fail:
while (ranges) {
rng = ranges;
ranges = ranges->next;
ranges = rng->next;
ck_free(rng);
rng = NULL;