This patch adds the missing test to cgroup_read_stats_end Sorry for the misstake. Fixed the test - it should return the error
Signed-off-by: Ivana Hutarova Varekova <[email protected]> --- 0 files changed, 0 insertions(+), 0 deletions(-) diff --git a/src/api.c b/src/api.c index 492fb51..e03706b 100644 --- a/src/api.c +++ b/src/api.c @@ -2876,6 +2876,9 @@ int cgroup_read_stats_end(void **handle) return ECGINVAL; fp = (FILE *)*handle; + if (fp == NULL) + return ECGINVAL; + fclose(fp); return 0; } ------------------------------------------------------------------------------ This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thread-sfd _______________________________________________ Libcg-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/libcg-devel
