From 766fb6e2821dc84ccfe290e8906f12001e34043b Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 11 Jun 2016 18:22:33 +0200 Subject: fixing more leaks --- src/pq/test_pq.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/pq') diff --git a/src/pq/test_pq.c b/src/pq/test_pq.c index 95cfb715d..001d99e56 100644 --- a/src/pq/test_pq.c +++ b/src/pq/test_pq.c @@ -101,7 +101,7 @@ run_queries (PGconn *conn) TALER_string_to_amount ("EUR:4.4", &hamount)); json = json_object (); - json_object_set (json, "foo", json_integer (42)); + json_object_set_new (json, "foo", json_integer (42)); GNUNET_assert (NULL != json); /* FIXME: test GNUNET_PQ_result_spec_variable_size */ { @@ -159,10 +159,10 @@ run_queries (PGconn *conn) TALER_amount_cmp (&hamount, &hamount2)); GNUNET_break (42 == json_integer_value (json_object_get (json2, "foo"))); - json_decref (json2); GNUNET_PQ_cleanup_result (results_select); PQclear (result); } + json_decref (json); if (GNUNET_OK != ret) return 1; -- cgit v1.2.3