1. Feb 12, 2018
  2. Feb 10, 2018
  3. Feb 09, 2018
  4. Feb 08, 2018
  5. Feb 02, 2018
  6. Jan 30, 2018
  7. Dec 21, 2017
  8. Dec 19, 2017
  9. Dec 17, 2017
  10. Dec 14, 2017
    • Corey Farrell's avatar
      apiref: Clarify documentation for unpack `O` format. · 6c789100
      Corey Farrell authored
      The `O` format causes reference counts to increase, but in an error they
      are not released.  Callers to unpack functions that use the `O` format
      should use pointers pre-initialized to NULL so they can safely release
      the reference on error.
      
      Also corrected typo which said this was like `O` (itself).
      
      Fixes #135
      6c789100
    • Corey Farrell's avatar
      json_object_iter_set_new: Fix error branch leak. · 89dad895
      Corey Farrell authored
      This function needs to release a reference to value if the other
      arguments are invalid.
      
      Issue #135
      89dad895
    • Corey Farrell's avatar
      json_pack: Enable more complete stealing of references. · 9a1d9c88
      Corey Farrell authored
      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
      9a1d9c88
  11. Dec 13, 2017
  12. Dec 10, 2017
  13. Nov 15, 2017
  14. Nov 07, 2017
  15. Oct 30, 2017
  16. Oct 09, 2017
  17. Oct 03, 2017
  18. Aug 20, 2017
  19. Aug 06, 2017
    • Petri Lehtinen's avatar
      Merge pull request #359 from sanjay24/master · 93e8cd7d
      Petri Lehtinen authored
      json_dump_file API returns success even when fclose fails
      93e8cd7d
    • Sanjay Kumar's avatar
      json_dump_file API returns success even when fclose fails (consider disk full... · 0abcbce3
      Sanjay Kumar authored
      json_dump_file API returns success even when fclose fails (consider disk full case). API should check the return value of fclose before returning success to its caller. fwrite may not write anything into the file, it simply returns the number of bytes written into the buffer. When disk is full and fclose is called, it results in truncation of the file (resulting in zero sized file). Since, API is returning success, its caller can't take any remedial action on its failure.
      0abcbce3
  20. Jul 21, 2017
  21. Jul 16, 2017
  22. Apr 19, 2017
  23. Apr 13, 2017