From 03bd1bf50d536449202cb821171cd9d8a493215a Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Tue, 28 Mar 2017 14:41:40 +1100 Subject: [PATCH] Fix minor leak in get_txn. --- src/bitcoin.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/bitcoin.c b/src/bitcoin.c index 14e9ad5f..288dade3 100644 --- a/src/bitcoin.c +++ b/src/bitcoin.c @@ -395,6 +395,7 @@ char *get_txn(connsock_t *cs, const char *hash) LOGDEBUG("get_txn for hash %s got data %s", hash, ret); } else LOGDEBUG("get_txn did not retrieve data for hash %s", hash); + json_decref(val); out: return ret; }