summaryrefslogtreecommitdiff
path: root/src/shared
diff options
context:
space:
mode:
authorThomas Hindoe Paaboel Andersen <phomes@gmail.com>2015-05-19 23:19:29 +0200
committerThomas Hindoe Paaboel Andersen <phomes@gmail.com>2015-05-19 23:19:54 +0200
commitfecb719ec1e1abc665f91d55adaa4951db5c1bed (patch)
tree0381ba5860773748a3b0fc895f62c09d820bbb65 /src/shared
parente885c2084abf32a3b60b8136da553290b20a244c (diff)
json: fix a mem leak
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/json.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/json.c b/src/shared/json.c
index f6c44f46f8..5d7d0dba80 100644
--- a/src/shared/json.c
+++ b/src/shared/json.c
@@ -126,7 +126,7 @@ JsonVariant *json_variant_unref(JsonVariant *variant) {
return NULL;
if (variant->type == JSON_VARIANT_ARRAY || variant->type == JSON_VARIANT_OBJECT)
- return json_object_unref(variant);
+ json_object_unref(variant);
else if (variant->type == JSON_VARIANT_STRING)
free(variant->string);