diff options
| author | Junio C Hamano <gitster@pobox.com> | 2026-03-16 10:48:15 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2026-03-16 10:48:15 -0700 |
| commit | 2eec0f51156ea872174bbd08f355155f381a568e (patch) | |
| tree | d705e3e0b7d0d18bc938941d081391374e67d6d9 /meson.build | |
| parent | c563b12ce7aa6bf8130385c80c001b2340026ff5 (diff) | |
| parent | a8a69bbb64e1d25b327aed5925b1fbc086a0ba69 (diff) | |
| download | git-2eec0f51156ea872174bbd08f355155f381a568e.tar.xz | |
Merge branch 'jk/unleak-mmap'
Plug a few leaks where mmap'ed memory regions are not unmapped.
* jk/unleak-mmap:
meson: turn on NO_MMAP when building with LSan
Makefile: turn on NO_MMAP when building with LSan
object-file: fix mmap() leak in odb_source_loose_read_object_stream()
pack-revindex: avoid double-loading .rev files
check_connected(): fix leak of pack-index mmap
check_connected(): delay opening new_pack
Diffstat (limited to 'meson.build')
| -rw-r--r-- | meson.build | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meson.build b/meson.build index 1036eafc3c..9e9ba9b82b 100644 --- a/meson.build +++ b/meson.build @@ -1438,7 +1438,7 @@ else 'getpagesize' : [], } - if get_option('b_sanitize').contains('address') + if get_option('b_sanitize').contains('address') or get_option('b_sanitize').contains('leak') libgit_c_args += '-DNO_MMAP' libgit_sources += 'compat/mmap.c' else |
