Hi, This patch adds necessary fclose() calls into egid_of_pid().
Thanks Ken'ichi Ohmichi Reported-by: Masayuki Igawa <[email protected]> Signed-off-by: Ken'ichi Ohmichi <[email protected]> --- src/tools/cgclassify.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/src/tools/cgclassify.c b/src/tools/cgclassify.c index 79d3477..de10510 100644 --- a/src/tools/cgclassify.c +++ b/src/tools/cgclassify.c @@ -94,9 +94,11 @@ int egid_of_pid(pid_t pid) (int *)&egid, (int *)&sgid, (int *)&fsgid); cgroup_dbg("Scanned proc values are %d %d %d %d\n", rgid, egid, sgid, fsgid); + fclose(fp); return egid; } } + fclose(fp); /* If we are here, we could not find egid. Return error. */ return -1; ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ Libcg-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/libcg-devel
