summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib.c b/lib.c
index 074562d..3cbe11e 100644
--- a/lib.c
+++ b/lib.c
@@ -412,7 +412,7 @@ ut_push(struct ut_state *s, uint32_t off, struct json_object *args)
json_object_array_add(arr, json_object_get(item));
}
- return item;
+ return json_object_get(item);
}
static struct json_object *