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/json.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/json.c')
-rw-r--r-- | src/json.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -18,6 +18,11 @@ #include <stdlib.h> #include <string.h> +void json_free(struct json_object *obj) +{ + json_object_put(obj); +} + static const char *json_to_string_internal(struct json_object *obj, int flags) { const char *result = json_object_to_json_string_ext(obj, flags); |