Signed-off-by: Ismo Puustinen <ismo.puusti...@intel.com>

diff --git a/src/tools/cgsnapshot.c b/src/tools/cgsnapshot.c
index a0599c1..806898d 100644
--- a/src/tools/cgsnapshot.c
+++ b/src/tools/cgsnapshot.c
@@ -428,6 +428,8 @@ static int display_cgroup_data(struct cgroup *group,
                                goto err;
                        }
                        fprintf(of, "\t\t%s=\"%s\";\n", output_name, value);
+
+                       free(value);
                }
                fprintf(of, "\t}\n");
        }
-- 
2.4.3


------------------------------------------------------------------------------
_______________________________________________
Libcg-devel mailing list
Libcg-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libcg-devel

Reply via email to