Try to fix clang-cmake-aarch64-42vma by removing a memory leak (have a global var capture it).

llvm-svn: 268114
This commit is contained in:
Filipe Cabecinhas 2016-04-29 21:33:12 +00:00
parent f23ce3609b
commit dd754ef857
1 changed files with 2 additions and 1 deletions

View File

@ -8,11 +8,12 @@
#include <assert.h>
#include <stdlib.h>
char *p;
int main(int argc, char **argv) {
// ALL-ERRORS: ERROR: AddressSanitizer: invalid-pointer-pair
// [[PTR1:0x[0-9a-f]+]] [[PTR2:0x[0-9a-f]+]]
assert(argc >= 2);
char *p = (char *)malloc(42);
p = (char *)malloc(42);
char *q = (char *)malloc(42);
switch (argv[1][0]) {
case 'g':