summaryrefslogtreecommitdiff
path: root/midx.c
diff options
context:
space:
mode:
authorTaylor Blau <me@ttaylorr.com>2021-03-30 15:04:14 (GMT)
committerJunio C Hamano <gitster@pobox.com>2021-04-01 20:07:37 (GMT)
commit7240cc4b65b6684c403487889cce396e45ad30cd (patch)
treee8bd5d5fbf5c48e15be070092db588aa15caabc5 /midx.c
parent9218c6a40c37023a1f434222d501218cf8157857 (diff)
downloadgit-7240cc4b65b6684c403487889cce396e45ad30cd.zip
git-7240cc4b65b6684c403487889cce396e45ad30cd.tar.gz
git-7240cc4b65b6684c403487889cce396e45ad30cd.tar.bz2
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>
Diffstat (limited to 'midx.c')
-rw-r--r--midx.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/midx.c b/midx.c
index b8f42bf..25bfb33 100644
--- a/midx.c
+++ b/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);
f = hashfd(get_lock_file_fd(&lk), get_lock_file_path(&lk));
- FREE_AND_NULL(midx_name);
if (ctx.m)
close_midx(ctx.m);