jansson/test
Corey Farrell 9a1d9c88fc json_pack: Enable more complete stealing of references.
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
2017-12-13 14:03:58 -05:00
..
bin Update copyrights for 2016 2016-09-18 14:17:03 +03:00
scripts Update copyrights for 2016 2016-09-18 14:17:03 +03:00
suites json_pack: Enable more complete stealing of references. 2017-12-13 14:03:58 -05:00
.gitignore Added test files to .gitignore 2016-09-07 10:13:52 -07:00
Makefile.am Distribute some missing files 2010-01-21 21:48:31 +02:00
run-suites Use expr instead of $((...)) in shell scripts 2014-10-03 08:49:08 +03:00