mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-09-04 08:33:55 +02:00
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:
+4
-1
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user