Skip to content

Commit 7240cc4

Browse files
ttaylorrgitster
authored andcommitted
midx: don't free midx_name early
A subsequent patch will need to refer back to 'midx_name' later on in the function. In fact, this variable is already free()'d later on, so this makes the later free() no longer redundant. Signed-off-by: Taylor Blau <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 9218c6a commit 7240cc4

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

midx.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -956,7 +956,6 @@ static int write_midx_internal(const char *object_dir, struct multi_pack_index *
956956

957957
hold_lock_file_for_update(&lk, midx_name, LOCK_DIE_ON_ERROR);
958958
f = hashfd(get_lock_file_fd(&lk), get_lock_file_path(&lk));
959-
FREE_AND_NULL(midx_name);
960959

961960
if (ctx.m)
962961
close_midx(ctx.m);

0 commit comments

Comments
 (0)