From: jdybnis Date: Mon, 10 Nov 2008 06:59:52 +0000 (+0000) Subject: bug fix. use deferred free for deleted keys X-Git-Url: https://pd.if.org/git/?p=nbds;a=commitdiff_plain;h=69f813b01bb0472f9ec5368b26a702bcc06f7e29 bug fix. use deferred free for deleted keys --- diff --git a/struct/ht.c b/struct/ht.c index 8d5e160..54eb2e0 100644 --- a/struct/ht.c +++ b/struct/ht.c @@ -217,7 +217,7 @@ static int hti_copy_entry (hash_table_i_t *old_hti, volatile entry_t *old_e, uin // be freed. assert(COPIED_VALUE == TAG_VALUE(TOMBSTONE)); if (old_e_value == TOMBSTONE) { - nbd_free((string_t *)(old_e->key & MASK(48))); + nbd_defer_free((string_t *)(old_e->key & MASK(48))); return TRUE; } old_e_value = STRIP_TAG(old_e_value);