Skip to content

Commit 6d6111f

Browse files
committed
Add leak sanitizer
1 parent a984fc7 commit 6d6111f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/env_san.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ set_vars() {
5555
# compile time
5656
export CC=clang
5757
export CXX=clang++
58-
export CXXFLAGS="-fsanitize=address,undefined -fsanitize-recover=address,undefined -fno-omit-frame-pointer"
59-
export CFLAGS="-fsanitize=address,undefined -fsanitize-recover=address,undefined -fno-omit-frame-pointer"
58+
export CXXFLAGS="-fsanitize=address,undefined,leak -fsanitize-recover=address,undefined -fno-omit-frame-pointer"
59+
export CFLAGS="-fsanitize=address,undefined,leak -fsanitize-recover=address,undefined -fno-omit-frame-pointer"
6060
}
6161

6262
set_vars

0 commit comments

Comments
 (0)