X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fgmqcc.git;a=blobdiff_plain;f=util.c;h=6853393e0487f384dfe602d331db5027b345a785;hp=1bbbf96f21c701addd162498dc93633f9ff35deb;hb=a1b50603e54ba8d63515b14f1f69549c3f7d7713;hpb=23d16b303d6b2c3c2fa375a2163519b23f4541cb diff --git a/util.c b/util.c index 1bbbf96..6853393 100644 --- a/util.c +++ b/util.c @@ -640,12 +640,15 @@ void util_htdel(hash_table_t *ht) { size_t i = 0; for (; i < ht->size; i++) { hash_node_t *n = ht->table[i]; + hash_node_t *p; /* free in list */ while (n) { if (n->key) mem_d(n->key); + p = n; n = n->next; + mem_d(p); } }