From f75fba3e2f8f6fdb4905636b92338ddb8365c381 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Wed, 19 Jun 2013 21:03:36 +0100 Subject: Call jv_free on invalid result --- jq.pyx | 1 + 1 file changed, 1 insertion(+) 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) -- cgit v1.2.3