[Openmp-commits] [openmp] r280530 - Replace a bad instance of __kmp_free() with KMP_CPU_FREE_ARRAY() macro.
Jonathan Peyton via Openmp-commits
openmp-commits at lists.llvm.org
Fri Sep 2 12:37:12 PDT 2016
Author: jlpeyton
Date: Fri Sep 2 14:37:12 2016
New Revision: 280530
URL: http://llvm.org/viewvc/llvm-project?rev=280530&view=rev
Log:
Replace a bad instance of __kmp_free() with KMP_CPU_FREE_ARRAY() macro.
Modified:
openmp/trunk/runtime/src/kmp_affinity.cpp
Modified: openmp/trunk/runtime/src/kmp_affinity.cpp
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/runtime/src/kmp_affinity.cpp?rev=280530&r1=280529&r2=280530&view=diff
==============================================================================
--- openmp/trunk/runtime/src/kmp_affinity.cpp (original)
+++ openmp/trunk/runtime/src/kmp_affinity.cpp Fri Sep 2 14:37:12 2016
@@ -4141,7 +4141,7 @@ __kmp_aux_affinity_initialize(void)
KMP_ASSERT2(0, "Unexpected affinity setting");
}
- __kmp_free(osId2Mask);
+ KMP_CPU_FREE_ARRAY(osId2Mask, maxIndex+1);
machine_hierarchy.init(address2os, __kmp_avail_proc);
}
#undef KMP_EXIT_AFF_NONE
More information about the Openmp-commits
mailing list