aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/json.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/json.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/json.c b/src/json.c
index 2e0a6bb..9a38e4e 100644
--- a/src/json.c
+++ b/src/json.c
@@ -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);