forked from OSchip/llvm-project
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:
parent
f23ce3609b
commit
dd754ef857
|
@ -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':
|
||||
|
|
Loading…
Reference in New Issue