@@ -3603,7 +3603,6 @@ void api(int api_thr_id)
}
- json_decref(json_config);
if (!did)
@@ -3623,6 +3622,9 @@ void api(int api_thr_id)
+ if (isjson)
+ json_decref(json_config);
+
if (!did) {
strcpy(io_buffer, message(MSG_INVCMD, 0, NULL, isjson));
send_result(c, isjson);