Mercurial > vim
comparison 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 |
comparison
equal
deleted
inserted
replaced
19865:cbe06eef8c71 | 19866:1136ec381dd2 |
---|---|
689 # PROFILE_CFLAGS=-g -O0 -fprofile-arcs -ftest-coverage | 689 # PROFILE_CFLAGS=-g -O0 -fprofile-arcs -ftest-coverage |
690 # LDFLAGS=--coverage | 690 # LDFLAGS=--coverage |
691 | 691 |
692 | 692 |
693 # Uncomment one of the next two lines to compile Vim with the | 693 # Uncomment one of the next two lines to compile Vim with the |
694 # address sanitizer or with the undefined sanitizer. Works with gcc and | 694 # address sanitizer (asan) or with the undefined sanitizer. Works with gcc and |
695 # clang. May make Vim twice as slow. Errors reported on stderr. | 695 # clang. May make Vim twice as slow. Errors reported on stderr. |
696 # More at: https://code.google.com/p/address-sanitizer/ | 696 # More at: https://code.google.com/p/address-sanitizer/ |
697 # Useful environment variables: | |
698 # $ export ASAN_OPTIONS="print_stacktrace=1 log_path=asan" | |
699 # $ export LSAN_OPTIONS="suppressions=$cwd/testdir/lsan-suppress.txt" | |
697 #SANITIZER_CFLAGS = -g -O0 -fsanitize=address -fno-omit-frame-pointer | 700 #SANITIZER_CFLAGS = -g -O0 -fsanitize=address -fno-omit-frame-pointer |
698 #SANITIZER_CFLAGS = -g -O0 -fsanitize=undefined -fno-omit-frame-pointer | 701 #SANITIZER_CFLAGS = -g -O0 -fsanitize=undefined -fno-omit-frame-pointer |
699 SANITIZER_LIBS = $(SANITIZER_CFLAGS) | 702 SANITIZER_LIBS = $(SANITIZER_CFLAGS) |
700 | 703 |
701 # MEMORY LEAK DETECTION | 704 # MEMORY LEAK DETECTION |