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; ------------------------------------------------------------------------------ EMC VNX: the world's simplest storage, starting under $10K The only unified storage solution that offers unified management Up to 160% more powerful than alternatives and 25% more efficient. Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev _______________________________________________ Libcg-devel mailing list Libcg-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libcg-devel