From 4bf7ffa984591fcd9c7bcc4b7e7ba92d37eed956 Mon Sep 17 00:00:00 2001 From: Eric Haszlakiewicz Date: Fri, 14 Feb 2020 03:25:46 +0000 Subject: [PATCH] Issue #539: be sure to clean up at the end of test_set_value. --- tests/test_set_value.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/test_set_value.c b/tests/test_set_value.c index 50957d2..6cd9563 100644 --- a/tests/test_set_value.c +++ b/tests/test_set_value.c @@ -51,6 +51,7 @@ int main(int argc, char **argv) const char *serialized = json_object_to_json_string(tmp); fprintf(stderr, "%s\n", serialized); assert(strncmp(serialized, "12.3", 4)==0); + json_object_put(tmp); printf("PARSE AND SET PASSED\n"); printf("PASSED\n");