cg_rd_ctrl_file does not free a fd in a special situation. This patch fixes it
Signed-off-by: Ivana Hutarova Varekova <varek...@redhat.com> --- src/api.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/src/api.c b/src/api.c index f295102..c91be82 100644 --- a/src/api.c +++ b/src/api.c @@ -2029,6 +2029,7 @@ static int cg_rd_ctrl_file(const char *subsys, const char *cgroup, *value = calloc(CG_VALUE_MAX, 1); if (!*value) { + fclose(ctrl_file); last_errno = errno; return ECGOTHER; } ------------------------------------------------------------------------------ EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev _______________________________________________ Libcg-devel mailing list Libcg-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libcg-devel