From 11432f7a08fd0795df7617d1e01bf39a6706f24a Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Fri, 10 Jul 2026 18:38:33 +0100 Subject: Fix leak when slurping invalid text --- jq.pyx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'jq.pyx') diff --git a/jq.pyx b/jq.pyx index 6c21b57..7d2875b 100644 --- a/jq.pyx +++ b/jq.pyx @@ -433,6 +433,9 @@ cdef class _ResultIterator(object): except StopIteration: self._slurp = False break + except: + jv_free(value) + raise else: value = self._parse_next_input() -- cgit v1.2.3