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 |
||
---|---|---|
.. | ||
api | ||
encoding-flags | ||
invalid | ||
invalid-unicode | ||
valid | ||
.gitattributes | ||
Makefile.am |