Index: compiler-rt/trunk/lib/asan/tests/asan_mac_test_helpers.mm =================================================================== --- compiler-rt/trunk/lib/asan/tests/asan_mac_test_helpers.mm +++ compiler-rt/trunk/lib/asan/tests/asan_mac_test_helpers.mm @@ -237,4 +237,5 @@ [[NSURL alloc] initWithString:@"Saved Application State" relativeToURL:base]; [u release]; + [base release]; } Index: compiler-rt/trunk/test/asan/TestCases/Darwin/malloc_set_zone_name-mprotect.cc =================================================================== --- compiler-rt/trunk/test/asan/TestCases/Darwin/malloc_set_zone_name-mprotect.cc +++ compiler-rt/trunk/test/asan/TestCases/Darwin/malloc_set_zone_name-mprotect.cc @@ -47,5 +47,6 @@ memset(mem[i], 'a', 8 * (i % kNumIter)); free(mem[i]); } + malloc_destroy_zone(zone); return 0; } Index: compiler-rt/trunk/test/asan/TestCases/Darwin/scribble.cc =================================================================== --- compiler-rt/trunk/test/asan/TestCases/Darwin/scribble.cc +++ compiler-rt/trunk/test/asan/TestCases/Darwin/scribble.cc @@ -54,4 +54,5 @@ fprintf(stderr, "okthxbai!\n"); // CHECK-SCRIBBLE: okthxbai! // CHECK-NOSCRIBBLE: okthxbai! + free(my_class_isa); } Index: compiler-rt/trunk/test/asan/TestCases/Darwin/suppressions-darwin.cc =================================================================== --- compiler-rt/trunk/test/asan/TestCases/Darwin/suppressions-darwin.cc +++ compiler-rt/trunk/test/asan/TestCases/Darwin/suppressions-darwin.cc @@ -27,6 +27,7 @@ kCFStringEncodingUTF8, FALSE); // BOOM fprintf(stderr, "Ignored.\n"); free(a); + CFRelease(str); } // CHECK-CRASH: AddressSanitizer: heap-buffer-overflow Index: compiler-rt/trunk/test/asan/TestCases/Darwin/suppressions-sandbox.cc =================================================================== --- compiler-rt/trunk/test/asan/TestCases/Darwin/suppressions-sandbox.cc +++ compiler-rt/trunk/test/asan/TestCases/Darwin/suppressions-sandbox.cc @@ -18,6 +18,7 @@ kCFStringEncodingUTF8, FALSE); // BOOM fprintf(stderr, "Ignored.\n"); free(a); + CFRelease(str); } // CHECK-CRASH: AddressSanitizer: heap-buffer-overflow