From 1c52b78e72dade90f23cf9d41e7700648a10eee6 Mon Sep 17 00:00:00 2001 From: OpenGnSys Support Team Date: Tue, 23 Feb 2021 12:35:36 +0100 Subject: #942 memleak in og_send_request() --- src/rest.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/rest.c b/src/rest.c index 5217199..b67ea8e 100644 --- a/src/rest.c +++ b/src/rest.c @@ -315,6 +315,8 @@ int og_send_request(enum og_rest_method method, enum og_cmd_type type, cli->last_cmd = type; } + json_decref((json_t *)data); + return 0; } -- cgit v1.2.3-18-g5258