[Openmp-commits] [PATCH] D21355: Fixed missing memory cleanup

Jonathan Peyton via Openmp-commits openmp-commits at lists.llvm.org
Thu Jun 16 13:21:47 PDT 2016


This revision was automatically updated to reflect the committed changes.
Closed by commit rL272946: Fixed missing memory cleanup in __kmp_affinity_create_hwloc_map() (authored by jlpeyton).

Changed prior to commit:
  http://reviews.llvm.org/D21355?vs=60767&id=61016#toc

Repository:
  rL LLVM

http://reviews.llvm.org/D21355

Files:
  openmp/trunk/runtime/src/kmp_affinity.cpp

Index: openmp/trunk/runtime/src/kmp_affinity.cpp
===================================================================
--- openmp/trunk/runtime/src/kmp_affinity.cpp
+++ openmp/trunk/runtime/src/kmp_affinity.cpp
@@ -414,6 +414,7 @@
             KMP_INFORM(Topology, "KMP_AFFINITY", nPackages, nCoresPerPkg,
               __kmp_nThreadsPerCore, __kmp_ncores);
         }
+        KMP_CPU_FREE(oldMask);
         return 0;
     }
 
@@ -562,6 +563,7 @@
     }
 
     if (__kmp_affinity_type == affinity_none) {
+        __kmp_free(retval);
         KMP_CPU_FREE(oldMask);
         return 0;
     }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D21355.61016.patch
Type: text/x-patch
Size: 593 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20160616/a40f37e1/attachment-0001.bin>


More information about the Openmp-commits mailing list