[util] Make Hash_DelContext null-safe

This commit is contained in:
Bill Currie 2023-03-05 16:44:19 +09:00
parent f9e442d323
commit 9193a92a81

View file

@ -229,6 +229,9 @@ hash_shutdown (void *data)
VISIBLE void
Hash_DelContext (hashctx_t *hashctx)
{
if (!hashctx) {
return;
}
while (hashctx->linksets) {
hlinkset_t *l = hashctx->linksets->next;
free (hashctx->linksets);