lpac/utils
Coelacanthus 48dbb131a2
fix(cJSON): invoke paired memory release function (#329)
F**king cJSON library has almost no documentation. No one will tell you the internal allocator will be used to allocate the string returned by cJSON_Print* series functions, and it SHALL be released using cJSON_free() to pair with the allocator!

And Windows has a different behavior from Unix-like systems. On Unix-like systems, although the library is built as a static library, the libc is still dynamically linked. But on Windows, it will statically link the CRT by default. It will lead there are two different instances of CRT, and then the malloc()/free() seen by cjson and other parts of lpac
are different.

supersedes and closes #328

Signed-off-by: Coelacanthus <uwu@coelacanthus.name>
2025-09-09 20:05:47 +08:00
..
lpac fix(cJSON): invoke paired memory release function (#329) 2025-09-09 20:05:47 +08:00
CMakeLists.txt refactor: make use system cJSON library possible (#314) 2025-09-05 12:55:49 +08:00