aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2026-03-16 10:48:15 -0700
committerJunio C Hamano <gitster@pobox.com>2026-03-16 10:48:15 -0700
commit2eec0f51156ea872174bbd08f355155f381a568e (patch)
treed705e3e0b7d0d18bc938941d081391374e67d6d9 /Makefile
parentc563b12ce7aa6bf8130385c80c001b2340026ff5 (diff)
parenta8a69bbb64e1d25b327aed5925b1fbc086a0ba69 (diff)
downloadgit-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 'Makefile')
-rw-r--r--Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 58fb895f4e..c619b5405b 100644
--- a/Makefile
+++ b/Makefile
@@ -1605,6 +1605,7 @@ BASIC_CFLAGS += -DSHA1DC_FORCE_ALIGNED_ACCESS
endif
ifneq ($(filter leak,$(SANITIZERS)),)
BASIC_CFLAGS += -O0
+NO_MMAP = CatchMapLeaks
SANITIZE_LEAK = YesCompiledWithIt
endif
ifneq ($(filter address,$(SANITIZERS)),)