From ee58990b05afbf7a1e649eb8436a479549f030e6 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Thu, 22 Jan 2015 14:10:03 +1100 Subject: [PATCH] Generically dealloc instead of freeing share pointer in purge_share_hashtable --- src/stratifier.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stratifier.c b/src/stratifier.c index ca7b57ee..d7871dd1 100644 --- a/src/stratifier.c +++ b/src/stratifier.c @@ -523,7 +523,7 @@ static void purge_share_hashtable(sdata_t *sdata, int64_t wb_id) HASH_ITER(hh, sdata->shares, share, tmp) { if (share->workbase_id < wb_id) { HASH_DEL(sdata->shares, share); - free(share); + dealloc(share); purged++; } }