From e0026224e763956a6229ec81cacd88869670e470 Mon Sep 17 00:00:00 2001 From: Gilles Gouaillardet Date: Fri, 27 Feb 2015 19:48:01 +0900 Subject: [PATCH] pstat linux: close the files as reported by Coverity with CID 71983 --- opal/mca/pstat/linux/pstat_linux_module.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/opal/mca/pstat/linux/pstat_linux_module.c b/opal/mca/pstat/linux/pstat_linux_module.c index a00d1d68b5..438facce8e 100644 --- a/opal/mca/pstat/linux/pstat_linux_module.c +++ b/opal/mca/pstat/linux/pstat_linux_module.c @@ -12,6 +12,8 @@ * Copyright (c) 2006-2015 Cisco Systems, Inc. All rights reserved. * Copyright (c) 2013 Los Alamos National Security, LLC. All rights reserved. * Copyright (c) 2013 Intel, Inc. All rights reserved. + * Copyright (c) 2015 Research Organization for Information Science + * and Technology (RIST). All rights reserved. * * $COPYRIGHT$ * @@ -412,6 +414,7 @@ static int query(pid_t pid, opal_list_append(&nstats->diskstats, &ds->super); opal_argv_free(fields); } + fclose(fp); netstats: /* look for the netstats file */