summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2013-06-19 21:03:36 +0100
committerMichael Williamson <mike@zwobble.org>2013-06-19 21:03:36 +0100
commitf75fba3e2f8f6fdb4905636b92338ddb8365c381 (patch)
tree0c03f3aaefe55d0d950936dfd54c2448184615bb
parent3429c89f556308c34b181c25264f01ec3e02a8b0 (diff)
Call jv_free on invalid result
-rw-r--r--jq.pyx1
1 files changed, 1 insertions, 0 deletions
diff --git a/jq.pyx b/jq.pyx
index 6c4ea4c..447eeb1 100644
--- a/jq.pyx
+++ b/jq.pyx
@@ -97,6 +97,7 @@ cdef process(jq_state *jq, jv value, output):
while True:
result = jq_next(jq)
if not jv_is_valid(result):
+ jv_free(result)
return output
else:
dumped = jv_dump_string(result, dumpopts)