From 382e518951f2caae0ba951b49811a4956e22ce2d Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Tue, 18 Jun 2013 23:37:46 +0100 Subject: Free dumped value --- jq.pyx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jq.pyx b/jq.pyx index b98d550..55408b4 100644 --- a/jq.pyx +++ b/jq.pyx @@ -4,6 +4,7 @@ cdef extern from "jv.h": int jv_is_valid(jv) char* jv_string_value(jv) jv jv_dump_string(jv, int flags) + void jv_free(jv) cdef extern from "jq.h": @@ -71,4 +72,4 @@ cdef process(jq_state *jq, jv value): else: dumped = jv_dump_string(result, dumpopts) output.append(jv_string_value(dumped)) - # TODO: free dumped + jv_free(dumped) -- cgit v1.2.3