summaryrefslogtreecommitdiffstats
path: root/compiler-rt
diff options
context:
space:
mode:
authorAlexey Samsonov <samsonov@google.com>2013-09-08 14:01:07 +0000
committerAlexey Samsonov <samsonov@google.com>2013-09-08 14:01:07 +0000
commit77029be19a22b33f18a0c0c3c8d66f642699e161 (patch)
treea0e2de1fce763e815b2ea147264ac3c4ae67e4ee /compiler-rt
parenta302a1affc49c112eb6f7ff13b73d920698658df (diff)
downloadbcm5719-llvm-77029be19a22b33f18a0c0c3c8d66f642699e161.tar.gz
bcm5719-llvm-77029be19a22b33f18a0c0c3c8d66f642699e161.zip
[ASan] fix one more memory leak in test case
llvm-svn: 190277
Diffstat (limited to 'compiler-rt')
-rw-r--r--compiler-rt/lib/asan/lit_tests/TestCases/free_hook_realloc.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler-rt/lib/asan/lit_tests/TestCases/free_hook_realloc.cc b/compiler-rt/lib/asan/lit_tests/TestCases/free_hook_realloc.cc
index 92f5acd6dc8..7a71964b003 100644
--- a/compiler-rt/lib/asan/lit_tests/TestCases/free_hook_realloc.cc
+++ b/compiler-rt/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;
OpenPOWER on IntegriCloud