summaryrefslogtreecommitdiff
path: root/jq.pyx
diff options
context:
space:
mode:
Diffstat (limited to 'jq.pyx')
-rw-r--r--jq.pyx3
1 files changed, 3 insertions, 0 deletions
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()