[Pkg-libvirt-commits] [libguestfs] 23/26: builder: clean the parsing structs on error

Hilko Bengen bengen at moszumanska.debian.org
Thu Mar 20 23:06:11 UTC 2014


This is an automated email from the git hooks/post-receive script.

bengen pushed a commit to annotated tag upstream/1.25.46
in repository libguestfs.

commit 62875c88be1cc88e05d41dfec13383ce1dbbbbbe
Author: Pino Toscano <ptoscano at redhat.com>
Date:   Thu Mar 20 14:47:04 2014 +0100

    builder: clean the parsing structs on error
---
 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>
+
 %%
 
 index:

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-libvirt/libguestfs.git



More information about the Pkg-libvirt-commits mailing list