akheron / jansson

C library for encoding, decoding and manipulating JSON data
http://www.digip.org/jansson/
Other
3.05k stars 808 forks source link

json_get_alloc_funcs() is not used where it should be. #625

Closed dokutoku closed 2 years ago

dokutoku commented 2 years ago

This line and this line should not use the free() function, but should use jsonp_free() or the free function obtained with json_get_alloc_funcs().

akheron commented 2 years ago

Jansson uses malloc by default, so using free is correct in programs that don't call json_set_alloc_funcs.