Revised some code from PR#352 in response to questions from Darryl

Miles.  Updated the version number to go along with the merge of
a number of pull requests done today.
This commit is contained in:
Tim Edwards
2024-12-26 15:29:54 -05:00
parent 55d15ffaa5
commit 8371d797ad
3 changed files with 6 additions and 5 deletions
+4 -1
View File
@@ -692,10 +692,13 @@ HashKill(table)
for (hp = table->ht_table, hend = &hp[table->ht_size]; hp < hend; hp++)
for (h = *hp; h != NIL; h = h->h_next)
{
const void *p = h->h_key.h_ptr;
const void *p;
freeMagic((char *) h);
if (killFn)
{
p = h->h_key.h_ptr;
(*killFn)((void *)p);
}
}
freeMagic((char *) table->ht_table);