summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
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;
}