diff options
| author | Michael Williamson <mike@zwobble.org> | 2013-06-19 21:03:36 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2013-06-19 21:03:36 +0100 |
| commit | f75fba3e2f8f6fdb4905636b92338ddb8365c381 (patch) | |
| tree | 0c03f3aaefe55d0d950936dfd54c2448184615bb | |
| parent | 3429c89f556308c34b181c25264f01ec3e02a8b0 (diff) | |
Call jv_free on invalid result
| -rw-r--r-- | jq.pyx | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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) |
