Parse nan in JSON as NaN instead of triggering a parse error (#2712)
Before adoption: this commit came in with the history the project adopted, so no landing records it.
* Fix memory leak for has(nan) jv_array_get() used to be responsible of freeing the input array, but since b5c4c3d67decec22d34f494a200af59bbcadcc80, it is no longer called if the key is nan. We need to free it manually to avoid leaking the array. * Parse nan in JSON as NaN instead of triggering a parse error Fixes #2021
authored by Emanuele Torre · committed by GitHub · parent 092fef7 · Browse files · 3 files+18 added−1 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
3 files+18 added−1 removed
- tests:+12 added−0 removed
- other:+6 added−1 removed