mirror of
https://github.com/openwrt/openwrt.git
synced 2026-11-28 23:03:53 +04:00
Backport two upstream json-c fixes for object cleanup in version 0.19. Clear the user-delete callback after calling it to avoid a second call and double-free. Clear userdata so iterative cleanup cannot interpret application data as a parent-object pointer. Include the upstream regression test and its expected output. Bump the package release to make the fixes available in updated packages. Upstream: https://github.com/json-c/json-c/commit/3aa996b5b6bd96c29f2c6da98da33c3fb3d13038 Upstream: https://github.com/json-c/json-c/commit/0c3a5a1994ed6b5957d2e878fc1298ce9aa09b3f Signed-off-by: Satoshi Ikeuchi <satosan.ikm@gmail.com>