make h_llktable_free a no-op on NULL, just to be safe
This commit is contained in:
parent
31c5189974
commit
f1810d8be6
1 changed files with 2 additions and 0 deletions
|
|
@ -49,6 +49,8 @@ HLLkTable *h_llktable_new(HAllocator *mm__)
|
|||
|
||||
void h_llktable_free(HLLkTable *table)
|
||||
{
|
||||
if(table == NULL)
|
||||
return;
|
||||
HAllocator *mm__ = table->mm__;
|
||||
h_delete_arena(table->arena);
|
||||
h_free(table);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue