[Openmp-commits] [openmp] r292677 - Merging r292348:
Jonathan Peyton via Openmp-commits
openmp-commits at lists.llvm.org
Fri Jan 20 15:31:22 PST 2017
Author: jlpeyton
Date: Fri Jan 20 17:31:21 2017
New Revision: 292677
URL: http://llvm.org/viewvc/llvm-project?rev=292677&view=rev
Log:
Merging r292348:
------------------------------------------------------------------------
r292348 | jlpeyton | 2017-01-18 00:40:19 -0600 (Wed, 18 Jan 2017) | 5 lines
Fix small memory leak regarding __kmp_nested_proc_bind
There is no corresponding free() for this expandable array. The logic is
added in __kmp_cleanup() next to the freeing of __kmp_nested_nth.
------------------------------------------------------------------------
Modified:
openmp/branches/release_40/runtime/src/kmp_runtime.cpp
Modified: openmp/branches/release_40/runtime/src/kmp_runtime.cpp
URL: http://llvm.org/viewvc/llvm-project/openmp/branches/release_40/runtime/src/kmp_runtime.cpp?rev=292677&r1=292676&r2=292677&view=diff
==============================================================================
--- openmp/branches/release_40/runtime/src/kmp_runtime.cpp (original)
+++ openmp/branches/release_40/runtime/src/kmp_runtime.cpp Fri Jan 20 17:31:21 2017
@@ -7293,6 +7293,10 @@ __kmp_cleanup( void )
__kmp_nested_nth.nth = NULL;
__kmp_nested_nth.size = 0;
__kmp_nested_nth.used = 0;
+ KMP_INTERNAL_FREE( __kmp_nested_proc_bind.bind_types );
+ __kmp_nested_proc_bind.bind_types = NULL;
+ __kmp_nested_proc_bind.size = 0;
+ __kmp_nested_proc_bind.used = 0;
__kmp_i18n_catclose();
More information about the Openmp-commits
mailing list