CPU Affinity: don't leak FD for PE map file
authorPhil Miller <mille121@illinois.edu>
Thu, 22 Aug 2013 04:41:24 +0000 (23:41 -0500)
committerPhil Miller <mille121@illinois.edu>
Wed, 28 Aug 2013 04:10:29 +0000 (23:10 -0500)
src/conv-core/cpuaffinity.c

index 0612a09a97ccb169457bb8f1ea2d23c97e767e85..d95d7641119b0c04e156d1bd4499ce1090badb1d 100644 (file)
@@ -570,6 +570,7 @@ void CmiInitCPUAffinity(char **argv)
         strcat(pemap, buf);
       }
     }
+    fclose(fp);
     if (CmiMyPe()==0) CmiPrintf("Charm++> read from pemap file '%s': %s\n", pemapfile, pemap);
   }