@@ -1021,7 +1021,6 @@ void api(void)
}
- json_decref(json_config);
if (!did)
@@ -1034,6 +1033,9 @@ void api(void)
+ if (isjson)
+ json_decref(json_config);
+
if (!did) {
strcpy(io_buffer, message(MSG_INVCMD, 0, isjson));
send_result(c, isjson);