From: Eric Haszlakiewicz Date: Thu, 29 Nov 2012 20:06:17 +0000 (-0500) Subject: Add a missing json_object_get() so we don't try to use a freed object in test1. X-Git-Tag: json-c-0.11-20130402~32 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=aec876357c3207585d3378d2b47cfaa824c5dde4;p=thirdparty%2Fjson-c.git Add a missing json_object_get() so we don't try to use a freed object in test1. --- diff --git a/tests/test1.c b/tests/test1.c index 0c483a59..7acea622 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");