From ebeb710375fa2fce60da50cf36b3e30877f688f2 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Tue, 19 Nov 2013 22:21:18 +1100 Subject: [PATCH] Decrement json references in api.c to not leak memory. The json_val in api.c is a borrowed reference, not a new one so don't decref it. --- api.c | 1 + 1 file changed, 1 insertion(+) diff --git a/api.c b/api.c index 88319176..4ccecd17 100644 --- a/api.c +++ b/api.c @@ -3876,6 +3876,7 @@ void api(int api_thr_id) } } } + json_decref(json_config); } }