summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorOpenGnSys Support Team <soporte-og@soleta.eu>2021-02-23 12:35:36 +0100
committerOpenGnSys Support Team <soporte-og@soleta.eu>2021-02-23 12:35:53 +0100
commit1c52b78e72dade90f23cf9d41e7700648a10eee6 (patch)
tree888a10c6f42c494d897fd09856d449e28fbc551a /src
parent0d9d72eb42b35144af5bc69cff9e46f92a0dbfb0 (diff)
#942 memleak in og_send_request()
Diffstat (limited to 'src')
-rw-r--r--src/rest.c2
1 files changed, 2 insertions, 0 deletions
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;
}