From: Eric Haszlakiewicz Date: Fri, 14 Feb 2020 03:25:46 +0000 (+0000) Subject: Issue #539: be sure to clean up at the end of test_set_value. X-Git-Tag: json-c-0.14-20200419~57 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4bf7ffa984591fcd9c7bcc4b7e7ba92d37eed956;p=json-c Issue #539: be sure to clean up at the end of test_set_value. --- 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");