[ASan] turn on leak checking for ASan tests and fix a few discovered leaks

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190274 91177308-0d34-0410-b5e6-96231b3b80d8
[Sanitizer] Use generic configs for running sanitizer_common unit tests

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190276 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan] fix one more memory leak in test case

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190277 91177308-0d34-0410-b5e6-96231b3b80d8
[sanitizer] Delete extra whitespace.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190292 91177308-0d34-0410-b5e6-96231b3b80d8
[sanitizer] Fix PR17138.

strerror_r on OSX returns a positive error code when the errno value is
unknown. Buffer contents are initialized in any case.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190295 91177308-0d34-0410-b5e6-96231b3b80d8