From aec876357c3207585d3378d2b47cfaa824c5dde4 Mon Sep 17 00:00:00 2001 From: Eric Haszlakiewicz Date: Thu, 29 Nov 2012 15:06:17 -0500 Subject: [PATCH] Add a missing json_object_get() so we don't try to use a freed object in test1. --- tests/test1.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/test1.c b/tests/test1.c index 0c483a5..7acea62 100644 --- a/tests/test1.c +++ b/tests/test1.c @@ -109,6 +109,7 @@ int main(int argc, char **argv) json_object_object_add(my_object, "baz", json_object_new_string("bang")); json_object *baz_obj = json_object_new_string("fark"); + json_object_get(baz_obj); json_object_object_add(my_object, "baz", baz_obj); json_object_object_del(my_object, "baz");