From cb28d6e3a0830deeed42187899e775009981af4c Mon Sep 17 00:00:00 2001 From: Andrey Churbanov Date: Fri, 8 Jul 2016 14:40:20 +0000 Subject: D22136: Memory leaks fixed by adding missed __kmp_free() calls llvm-svn: 274850 --- openmp/runtime/src/kmp_affinity.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'openmp/runtime/src') diff --git a/openmp/runtime/src/kmp_affinity.cpp b/openmp/runtime/src/kmp_affinity.cpp index e16f7c24632..fca87d9d5e9 100644 --- a/openmp/runtime/src/kmp_affinity.cpp +++ b/openmp/runtime/src/kmp_affinity.cpp @@ -227,6 +227,8 @@ __kmp_affinity_assign_child_nums(AddrUnsPair *address2os, address2os[i].first.childNums[labCt] = 0; } } + __kmp_free(lastLabel); + __kmp_free(counts); } -- cgit v1.2.3