From: lidongyan <502024330056@smail.nju.edu.cn> Date: Fri, 30 May 2025 03:50:12 GMT Subject: Re: [PATCH v4 1/2] pack-bitmap: fix memory leak if load_bitmap() failed Message-ID: <68A128BD-DB63-403F-82DF-B8B6C78D5308@smail.nju.edu.cn> In-Reply-To: Got it, I will add my sign-off. > 2025年5月29日 23:33,Junio C Hamano 写道: > > "Taylor Blau via GitGitGadget" writes: > >> From: Taylor Blau >> >> After going through the "failed" label, load_bitmap() will return -1, >> and its caller (either prepare_bitmap_walk() or prepare_bitmap_git()) >> will then call free_bitmap_index(). >> ... >> The solution is to remove the error handling code in load_bitmap(), because >> its caller will always call free_bitmap_index() in case of an error. >> >> Signed-off-by: Taylor Blau >> --- > > As this is Lidong relaying that Taylor > sent to the list, shouldn't Lidong's sign-off be after Taylor's? >