mirror of
https://github.com/estkme-group/lpac
synced 2025-09-10 05:12:57 +02:00
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> |
||
---|---|---|
.. | ||
lpac | ||
CMakeLists.txt |