9a1d9c88fc
Users of the "o" format have an expectation that the object reference will be stolen. Any error causes the collection process to end early. This patch causes json_pack and related functions to continue scanning the format and parameters so all references can be stolen to prevent leaks. This makes no attempt to continue processing if the format string is broken or missing. 'make check' still passes. Ran test_pack under valgrind and verified that the leaked reference is fixed. Added a test which uses refcounts to verify that the reference was correctly stolen after a NULL value error. Issue #135 |
||
---|---|---|
.. | ||
check-exports | ||
Makefile.am | ||
run | ||
test_array.c | ||
test_copy.c | ||
test_dump_callback.c | ||
test_dump.c | ||
test_equal.c | ||
test_load_callback.c | ||
test_load.c | ||
test_loadb.c | ||
test_memory_funcs.c | ||
test_number.c | ||
test_object.c | ||
test_pack.c | ||
test_simple.c | ||
test_unpack.c | ||
util.h |