hash_del, reentrant (BLOCK_INTERRUPTIONS needs to be made a counter now).
if ((p->h == h) && ((p->nKeyLength == 0) || /* Numeric index */
((p->nKeyLength == nKeyLength) && (!memcmp(p->arKey, arKey, nKeyLength))))) {
HANDLE_BLOCK_INTERRUPTIONS();
+ if (ht->pDestructor) {
+ ht->pDestructor(p->pData);
+ }
if (p == ht->arBuckets[nIndex]) {
ht->arBuckets[nIndex] = p->pNext;
} else {
} else {
ht->pListTail = p->pListLast;
}
- if (ht->pDestructor) {
- ht->pDestructor(p->pData);
- }
if (!p->pDataPtr) {
pefree(p->pData,ht->persistent);
}