diff --git a/src/lladd/lhtable.c b/src/lladd/lhtable.c index fe518e8..4aa15c2 100644 --- a/src/lladd/lhtable.c +++ b/src/lladd/lhtable.c @@ -80,6 +80,7 @@ static LH_ENTRY(value_t) * removeFromLinkedList(struct LH_ENTRY(table) * table, // bucketList, and free that item. struct LH_ENTRY(pair_t) * oldNext = thePair->next; *thePair = *(thePair->next); + ret = thePair->value; free(oldNext); } } else { // Found, in spillover bucket.