From 9f31d21f5e357ec0c7463e58797a8d93e50fcf2a Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Fri, 2 Dec 2016 14:26:42 +1100 Subject: [PATCH] Fix memleak in parse_delproxy. --- src/generator.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/generator.c b/src/generator.c index 630608eb..afb3360b 100644 --- a/src/generator.c +++ b/src/generator.c @@ -2492,6 +2492,7 @@ static void parse_delproxy(ckpool_t *ckp, gdata_t *gdata, const int sockd, const goto out; } json_get_int(&id, val, "id"); + json_decref(val); proxy = proxy_by_id(gdata, id); if (!proxy) { val = json_errormsg("Proxy id %d not found", id);