Mercurial > vim
diff src/Makefile @ 19866:1136ec381dd2 v8.2.0489
patch 8.2.0489: Vim9: memory leaks
Commit: https://github.com/vim/vim/commit/25b70c780a7e6063544e7f93c368fe403076f34e
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Apr 1 16:34:17 2020 +0200
patch 8.2.0489: Vim9: memory leaks
Problem: Vim9: memory leaks.
Solution: Free memory in the right place. Add hints for using asan.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 01 Apr 2020 16:45:05 +0200 |
parents | 00a1b89256ea |
children | 5e41b2e63c73 |
line wrap: on
line diff
--- a/src/Makefile +++ b/src/Makefile @@ -691,9 +691,12 @@ LINT_OPTIONS = -beprxzF # Uncomment one of the next two lines to compile Vim with the -# address sanitizer or with the undefined sanitizer. Works with gcc and +# address sanitizer (asan) or with the undefined sanitizer. Works with gcc and # clang. May make Vim twice as slow. Errors reported on stderr. # More at: https://code.google.com/p/address-sanitizer/ +# Useful environment variables: +# $ export ASAN_OPTIONS="print_stacktrace=1 log_path=asan" +# $ export LSAN_OPTIONS="suppressions=$cwd/testdir/lsan-suppress.txt" #SANITIZER_CFLAGS = -g -O0 -fsanitize=address -fno-omit-frame-pointer #SANITIZER_CFLAGS = -g -O0 -fsanitize=undefined -fno-omit-frame-pointer SANITIZER_LIBS = $(SANITIZER_CFLAGS)