From 65518d37127e7f0e5603cd42c1a5532a2791884c Mon Sep 17 00:00:00 2001 From: Kano Date: Sun, 22 Dec 2013 21:20:44 +1100 Subject: [PATCH] api.c no decref if not json --- api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api.c b/api.c index 24f1e6f9..2dd07f49 100644 --- a/api.c +++ b/api.c @@ -3898,7 +3898,7 @@ void api(int api_thr_id) message(io_data, MSG_INVCMD, 0, NULL, isjson); send_result(io_data, c, isjson); } - if (json_is_object(json_config)) + if (isjson && json_is_object(json_config)) json_decref(json_config); } }