[PATCH] D67330: Avoid memory leak in ASan test
Phabricator via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Sep 21 00:43:16 PDT 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rL372460: Avoid memory leak in ASan test (authored by kamil, committed by ).
Herald added a subscriber: delcypher.
Changed prior to commit:
https://reviews.llvm.org/D67330?vs=219270&id=221158#toc
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D67330/new/
https://reviews.llvm.org/D67330
Files:
compiler-rt/trunk/test/asan/TestCases/inline.cpp
Index: compiler-rt/trunk/test/asan/TestCases/inline.cpp
===================================================================
--- compiler-rt/trunk/test/asan/TestCases/inline.cpp
+++ compiler-rt/trunk/test/asan/TestCases/inline.cpp
@@ -13,6 +13,7 @@
int main(int argc, char **argv) {
int * volatile x = (int*)malloc(2*sizeof(int) + 2);
int res = f(x + 2);
+ free(x);
if (res)
exit(0);
return 0;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D67330.221158.patch
Type: text/x-patch
Size: 412 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190921/5f3123ab/attachment.bin>
More information about the llvm-commits
mailing list