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 /object-file.c | |
| 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 'object-file.c')
| -rw-r--r-- | object-file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/object-file.c b/object-file.c index a3ff7f586c..c62e5496e0 100644 --- a/object-file.c +++ b/object-file.c @@ -2211,7 +2211,7 @@ int odb_source_loose_read_object_stream(struct odb_read_stream **out, return 0; error: git_inflate_end(&st->z); - munmap(st->mapped, st->mapsize); + munmap(mapped, mapsize); free(st); return -1; } |
