diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/asan/TestCases/inline.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/asan/TestCases/inline.cpp b/test/asan/TestCases/inline.cpp index daeb7b49e..12bd27e67 100644 --- a/test/asan/TestCases/inline.cpp +++ b/test/asan/TestCases/inline.cpp @@ -13,6 +13,7 @@ int f(int *p) { 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; |