From e1514cdc014e662e966d678c634d40ad8c816f2d Mon Sep 17 00:00:00 2001 From: ckolivas Date: Sun, 18 Jan 2015 09:04:33 +1100 Subject: [PATCH] Drop two potentally unhandled reference counts --- src/stratifier.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/stratifier.c b/src/stratifier.c index 0f8fbd0d..14243316 100644 --- a/src/stratifier.c +++ b/src/stratifier.c @@ -2935,7 +2935,7 @@ static void parse_method(sdata_t *sdata, const int64_t client_id, json_t *id_val /* Shouldn't happen, sanity check */ if (unlikely(!result_val)) { LOGWARNING("parse_subscribe returned NULL result_val"); - return; + goto out; } val = json_object(); json_object_set_new_nocheck(val, "result", result_val); @@ -2990,7 +2990,7 @@ static void parse_method(sdata_t *sdata, const int64_t client_id, json_t *id_val if (cmdmatch(method, "mining.suggest")) { suggest_diff(client, method, params_val); - return; + goto out; } /* Covers both get_transactions and get_txnhashes */