You need to call this function to really free the entry after a call * to HashTableUnlink(). It's safe to call this function with 'he' = NULL. */
| 542 | /* You need to call this function to really free the entry after a call |
| 543 | * to HashTableUnlink(). It's safe to call this function with 'he' = NULL. */ |
| 544 | void HashTableFreeUnlinkedEntry(dict *d, dictEntry *he) { |
| 545 | if (he == NULL) return; |
| 546 | dictFreeKey(d, he); |
| 547 | dictFreeVal(d, he); |
| 548 | free(he); |
| 549 | } |
| 550 | |
| 551 | /* Destroy an entire dictionary */ |
| 552 | static int _dictClear(dict *d, int htidx, void(callback)(dict*)) { |