[Openmp-commits] [PATCH] D22136: Memory leak fixed.
Andrey Churbanov via Openmp-commits
openmp-commits at lists.llvm.org
Fri Jul 8 07:21:07 PDT 2016
AndreyChurbanov created this revision.
AndreyChurbanov added reviewers: tlwilmar, jlpeyton, hbae.
AndreyChurbanov added a subscriber: openmp-commits.
AndreyChurbanov set the repository for this revision to rL LLVM.
Added missed __kmp_free() calls for corresponding __kmp_allocate() ones.
Repository:
rL LLVM
http://reviews.llvm.org/D22136
Files:
runtime/src/kmp_affinity.cpp
Index: runtime/src/kmp_affinity.cpp
===================================================================
--- runtime/src/kmp_affinity.cpp
+++ runtime/src/kmp_affinity.cpp
@@ -227,6 +227,8 @@
address2os[i].first.childNums[labCt] = 0;
}
}
+ __kmp_free(lastLabel);
+ __kmp_free(counts);
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D22136.63218.patch
Type: text/x-patch
Size: 323 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20160708/f5d2aea1/attachment.bin>
More information about the Openmp-commits
mailing list