Decrement json references in api.c to not leak memory.
diff --git a/api.c b/api.c
index 587504c..e8aac16 100644
--- a/api.c
+++ b/api.c
@@ -4589,7 +4589,9 @@ void api(int api_thr_id)
param = param_buf;
}
}
+ json_decref(json_val);
}
+ json_decref(json_config);
}
}