From 96e145df67ea1363252bd08bb2e41befaeadcfe8 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Sat, 6 May 2017 22:29:06 +1000 Subject: [PATCH] Fix memleak in gen_gbtbase. --- src/bitcoin.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/bitcoin.c b/src/bitcoin.c index ada453ff..4381270f 100644 --- a/src/bitcoin.c +++ b/src/bitcoin.c @@ -190,6 +190,7 @@ bool gen_gbtbase(connsock_t *cs, gbtbase_t *gbt) ret = true; out: + json_decref(val); return ret; }