mirror of
https://github.com/json-c/json-c.git
synced 2026-04-07 14:29:06 +08:00
Issue #498: Fix a memory leak bug introduced in test_double_serializer in 485f2a02 by adding a json_object_put call.
This commit is contained in:
@@ -78,5 +78,6 @@ int main()
|
|||||||
|
|
||||||
obj = json_object_new_double(-12.0);
|
obj = json_object_new_double(-12.0);
|
||||||
printf("obj(-12.0).to_string(default format)=%s\n", json_object_to_json_string(obj));
|
printf("obj(-12.0).to_string(default format)=%s\n", json_object_to_json_string(obj));
|
||||||
|
json_object_put(obj);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user