Free the dictionary when cgroup_dictionary_add fails.

Signed-off-by: Jan Safranek <jsafr...@redhat.com>
---

 src/parse.y |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/parse.y b/src/parse.y
index bf68a98..e0c70d3 100644
--- a/src/parse.y
+++ b/src/parse.y
@@ -138,6 +138,7 @@ namevalue_conf
                        fprintf(stderr, "parsing failed at line number %d:%s\n",
                                line_no, cgroup_strerror(ret));
                        $$ = NULL;
+                       cgroup_dictionary_free(dict);
                        return ECGCONFIGPARSEFAIL;
                }
                $$ = dict;


------------------------------------------------------------------------------
Get a FREE DOWNLOAD! and learn more about uberSVN rich system, 
user administration capabilities and model configuration. Take 
the hassle out of deploying and managing Subversion and the 
tools developers use with it. 
http://p.sf.net/sfu/wandisco-dev2dev
_______________________________________________
Libcg-devel mailing list
Libcg-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libcg-devel

Reply via email to