mirror of
https://github.com/git/git
synced 2024-08-27 11:39:22 +00:00
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 <me@ttaylorr.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
9218c6a40c
commit
7240cc4b65
1
midx.c
1
midx.c
|
@ -956,7 +956,6 @@ static int write_midx_internal(const char *object_dir, struct multi_pack_index *
|
||||||
|
|
||||||
hold_lock_file_for_update(&lk, midx_name, LOCK_DIE_ON_ERROR);
|
hold_lock_file_for_update(&lk, midx_name, LOCK_DIE_ON_ERROR);
|
||||||
f = hashfd(get_lock_file_fd(&lk), get_lock_file_path(&lk));
|
f = hashfd(get_lock_file_fd(&lk), get_lock_file_path(&lk));
|
||||||
FREE_AND_NULL(midx_name);
|
|
||||||
|
|
||||||
if (ctx.m)
|
if (ctx.m)
|
||||||
close_midx(ctx.m);
|
close_midx(ctx.m);
|
||||||
|
|
Loading…
Reference in a new issue