Repositories » libk0
Clone URL:  
Pushed to one repository · View In Graph Contained in tip

freehash() check for NULL

Changeset 470f02711d87

Parent 59ef01b84511

by Rup Palchowdhury

Changes to one file · Browse files at 470f02711d87 Showing diff from parent 59ef01b84511 Diff from another changeset...

Change 1 of 1 Show Entire File khash.c Stacked
 
19
20
21
 
 
22
23
24
 
19
20
21
22
23
24
25
26
@@ -19,6 +19,8 @@
   void freehash(Hash *h, void (*freedata)(void*))  { + if (h == NULL) + return;   for (int i = 0; i < h->n; i++)   freelist(h->tab[i], freedata);   free(h);