Skip to content

Commit d1c4486

Browse files
jacob-kellergitster
authored andcommitted
send-pack: clean up extra_have oid array
Commit c800963 ("fetch-pack, send-pack: clean up shallow oid array", 2024-09-25) cleaned up the shallow oid array in cmd_send_pack, but didn't clean up extra_have, which is still leaked at program exit. I suspect the particular tests in t5539 don't trigger any additions to the extra_have array, which explains why the tests can pass leak free despite this gap. Signed-off-by: Jacob Keller <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent fbe8d30 commit d1c4486

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

builtin/send-pack.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,7 @@ int cmd_send_pack(int argc,
344344
free_refs(remote_refs);
345345
free_refs(local_refs);
346346
refspec_clear(&rs);
347+
oid_array_clear(&extra_have);
347348
oid_array_clear(&shallow);
348349
clear_cas_option(&cas);
349350
return ret;

0 commit comments

Comments
 (0)