Re: [PATCH] pack-bitmap: fix memory leak if `load_bitmap_entries_v1` failed
- From
lidongyan <502024330056@smail.nju.edu.cn>
- Date
- May 15, 2025, 01:37 UTC
- Message-ID
- <99DD81A9-DDF2-4D13-BDEC-9DD83C8E8423@smail.nju.edu.cn>
- In-Reply-To
- <20250514180325.GB2196784@coredump.intra.peff.net>
On 15/5/2025 at 02:03,Jeff King <peff@peff.net> 写道:
> It would be nice if we triggered these cases in the test suite so that > LSan could confirm that all leaks are covered. But I suspect it may not > be worth the effort to craft a bitmap file that is broken in such > particular ways.
I'd like to try coming up with some test cases for this.