On Thu, Mar 20, 2014 at 02:48:13PM +0100, Pino Toscano wrote:
--- builder/index-parse.y | 5 +++++ 1 file changed, 5 insertions(+)
diff --git a/builder/index-parse.y b/builder/index-parse.y index 5554e53..9355bd4 100644 --- a/builder/index-parse.y +++ b/builder/index-parse.y @@ -90,6 +90,11 @@ typedef void *yyscan_t; %parse-param { yyscan_t scanner } %parse-param { struct parse_context *context }
+%destructor { section_free ($$); } <sections> +%destructor { section_free ($$); } <section> +%destructor { field_free ($$); } <fields> +%destructor { field_free ($$); } <field>
ACK to 2/3 & 3/3. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones libguestfs lets you edit virtual machines. Supports shell scripting, bindings from many languages. http://libguestfs.org