Files
openwrt/package/libs
Jo-Philipp Wich e95288dcd5 libjson-c: fix memory leak in json_object_put()
json-c 0.19 wraps the actual object free in json_object_put() inside an
assert(), so when compiled with NDEBUG (as OpenWrt does) the free is
compiled out and every JSON object/array parsed by users such as
ucode's json() leaks memory (~1.7KB per object).

Apply the upstream fix, moving the free call outside the assert:

  json-c/json-c@f291fa81c6
  "free objects outside assert() in json_object_put"

Fixes: https://github.com/ucode-lang/ucode/issues/495
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2026-10-15 22:06:28 +02:00
..
2026-09-26 22:12:32 +02:00
2026-01-02 18:07:02 +01:00
2026-10-11 09:45:10 +02:00
2026-10-11 09:49:28 +02:00
2025-11-24 09:38:37 +01:00
2026-02-17 22:25:09 +01:00
2026-10-11 09:44:22 +02:00
2026-06-04 09:59:32 +02:00
2026-05-08 10:22:40 +02:00
2026-06-10 21:30:40 +02:00
2026-09-26 21:55:40 +02:00
2026-04-27 10:50:53 +02:00
2026-02-06 20:37:34 +01:00
2026-09-13 20:46:35 +01:00
2026-10-13 01:00:53 +02:00
2026-08-12 02:09:37 +02:00
2025-11-23 23:52:11 +01:00
2026-01-11 18:49:55 +01:00
2026-01-02 18:07:02 +01:00
2026-10-08 02:12:17 +02:00