From 649d5ff022dc60f0e5010bf29adf586941033834 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Sun, 15 Jan 2017 13:59:48 +1100 Subject: [PATCH] Clear_workbase on failed rebuild_txns in proxy mode instead of just freeing the wb memory. --- src/stratifier.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stratifier.c b/src/stratifier.c index 33e783c4..ed52bffc 100644 --- a/src/stratifier.c +++ b/src/stratifier.c @@ -1899,7 +1899,7 @@ static void add_node_base(ckpool_t *ckp, json_t *val, bool trusted, int64_t clie wb->incomplete = true; } else { if (!rebuild_txns(ckp, sdata, wb)) { - free(wb); + clear_workbase(wb); return; } }