diff options
| author | Egor Tensin <egor@tensin.name> | 2023-12-27 16:13:55 +0100 |
|---|---|---|
| committer | Egor Tensin <egor@tensin.name> | 2023-12-27 16:13:55 +0100 |
| commit | 161824050964f191315928e6d598bc584ec7cb7b (patch) | |
| tree | 50934331061fad0e1da8b8741d8a09bf0907e17c /src/protocol.c | |
| parent | docker: bump base image (diff) | |
| download | cimple-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.c | 3 |
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; } |
