plugging some mmap() leaks
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest4 patches 14 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | check_connected(): delay opening new_packconnected.c | +15 | 1 reply | |
| 2/4 | check_connected(): fix leak of pack-index mmapconnected.c | +4 | 1 reply | |
| 3/4 | pack-revindex: avoid double-loading .rev filespack-revindex.c | +4 | 0 replies | |
| 4/4 | Makefile: turn on NO_MMAP when building with LSanMakefile | +1 | 7 replies |
Reviews trailers per patch
2 of 4 patches have a Reviewed-by or Acked-by.
| Patch | Jacob Keller |
|---|---|
| 1/4 | R-b |
| 2/4 | R-b |
| 3/4 | |
| 4/4 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/4] plugging some mmap() leaks
Quoted 2 lines · Jeff King
Anyway, I think the solution is probably something like the patch above, though probably it needs to cover the case where
new_packis NULL.
So here is a more polished version. I decided to try running the whole test suite with leak-checking and NO_MMAP, and it turned up one other case. This series fixes that, too, and then turns on the flag for all leak-checking builds.
[1/4]: check_connected(): delay opening new_pack [2/4]: check_connected(): fix leak of pack-index mmap [3/4]: pack-revindex: avoid double-loading .rev files [4/4]: Makefile: turn on NO_MMAP when building with LSan
Makefile | 1 + connected.c | 38 +++++++++++++++++++------------------- pack-revindex.c | 4 ++++ 3 files changed, 24 insertions(+), 19 deletions(-)
-Peff