Memory affinity: don't leak NUMA node map array
authorPhil Miller <mille121@illinois.edu>
Thu, 22 Aug 2013 04:48:58 +0000 (23:48 -0500)
committerPhil Miller <mille121@illinois.edu>
Wed, 28 Aug 2013 04:10:29 +0000 (23:10 -0500)
src/conv-core/memoryaffinity.c

index 8be46980fda012eb1138fb37c1607b682c949cfd..69f30dbfc452130a64b7d0934009423bf9e86dbe 100644 (file)
@@ -213,6 +213,7 @@ void CmiInitMemAffinity(char **argv) {
         if (retval<0) {
             CmiAbort("set_mempolicy error w/ mem nodemap");
         }
+        free(nodemapArr);
     } else {
         /*use the affinity map set by the cpu affinity*/
         int myPhyRank = CpvAccess(myCPUAffToCore);