aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/protocol.c
diff options
context:
space:
mode:
authorEgor Tensin <egor@tensin.name>2023-12-27 16:13:55 +0100
committerEgor Tensin <egor@tensin.name>2023-12-27 16:13:55 +0100
commit161824050964f191315928e6d598bc584ec7cb7b (patch)
tree50934331061fad0e1da8b8741d8a09bf0907e17c /src/protocol.c
parentdocker: bump base image (diff)
downloadcimple-161824050964f191315928e6d598bc584ec7cb7b.tar.gz
cimple-161824050964f191315928e6d598bc584ec7cb7b.zip
json: factor out json_object_put into json_free
Diffstat (limited to 'src/protocol.c')
-rw-r--r--src/protocol.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/protocol.c b/src/protocol.c
index 106c991..c45b869 100644
--- a/src/protocol.c
+++ b/src/protocol.c
@@ -9,6 +9,7 @@
#include "base64.h"
#include "compiler.h"
#include "const.h"
+#include "json.h"
#include "json_rpc.h"
#include "process.h"
#include "run_queue.h"
@@ -218,7 +219,7 @@ int response_create_get_runs(struct jsonrpc_response **response,
return ret;
free_json:
- json_object_put(runs_json);
+ json_free(runs_json);
return ret;
}