diff options
| author | Michael Williamson <mike@zwobble.org> | 2026-07-10 18:20:25 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2026-07-10 18:20:25 +0100 |
| commit | fbc08f6ea80d36f86967d0f184a8d25ecaa9d314 (patch) | |
| tree | 65e257c0491dea4bafac9bb72809cb3d4b6f1401 | |
| parent | f34955f8585a6af650cb1ed6a36a230c182f05fb (diff) | |
Free value if invalid
| -rw-r--r-- | jq.pyx | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -119,6 +119,7 @@ cdef object _jv_to_python(jv value): cdef double number_value if kind == JV_KIND_INVALID: + jv_free(value) raise ValueError("Invalid value") elif kind == JV_KIND_NULL: python_value = None |
