Skip to content

Commit

Permalink
Merge pull request #2712 from mancasg/patch-1
Browse files Browse the repository at this point in the history
domain: fix use after free on domain reload
  • Loading branch information
oej committed Apr 19, 2021
2 parents d02c042 + 207d7ad commit 62d981d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/modules/domain/hash.c
Expand Up @@ -204,8 +204,9 @@ void hash_table_free(struct domain_list **hash_table)
shm_free(ap);
ap = next_ap;
}
next = np->next;
shm_free(np);
np = np->next;
np = next;
}

hash_table[DOM_HASH_SIZE] = NULL;
Expand Down

0 comments on commit 62d981d

Please sign in to comment.