diff options
author | Alexey Samsonov <samsonov@google.com> | 2013-09-08 14:01:07 +0000 |
---|---|---|
committer | Alexey Samsonov <samsonov@google.com> | 2013-09-08 14:01:07 +0000 |
commit | 4f78b354034f4b6826a59733d774f558ca1eab89 (patch) | |
tree | 75dd24ecbb50ff4d5e62945b4ef8d5e71b2d2672 /lib/asan/lit_tests | |
parent | 9da14cc709011d1d61ac1bcc9a8a78c00e80fce5 (diff) | |
download | compiler-rt-4f78b354034f4b6826a59733d774f558ca1eab89.tar.gz compiler-rt-4f78b354034f4b6826a59733d774f558ca1eab89.tar.bz2 compiler-rt-4f78b354034f4b6826a59733d774f558ca1eab89.tar.xz |
[ASan] fix one more memory leak in test case
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190277 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/asan/lit_tests')
-rw-r--r-- | lib/asan/lit_tests/TestCases/free_hook_realloc.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/asan/lit_tests/TestCases/free_hook_realloc.cc b/lib/asan/lit_tests/TestCases/free_hook_realloc.cc index 92f5acd6..7a71964b 100644 --- a/lib/asan/lit_tests/TestCases/free_hook_realloc.cc +++ b/lib/asan/lit_tests/TestCases/free_hook_realloc.cc @@ -25,6 +25,7 @@ int main() { _exit(1); } write(1, "Passed\n", sizeof("Passed\n")); + free(y); // CHECK: FreeHook // CHECK: Passed return 0; |