Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>2021-10-22 11:55:44 +0300
committerJunio C Hamano <gitster@pobox.com>2021-10-23 20:45:25 +0300
commit3c8150497f3c77a2c57e73c53bd3de933b85d9a3 (patch)
treee1cad970c4dcbb596aa5258fd84826d2b0a09a16 /builtin/reflog.c
parentc270b055d94b643b0ac8bcb390b82330aee01a34 (diff)
reflog: free() ref given to us by dwim_log()
When dwim_log() returns the "ref" is always ether NULL or an xstrdup()'d string. Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/reflog.c')
-rw-r--r--builtin/reflog.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/builtin/reflog.c b/builtin/reflog.c
index bd4c669918..175c83e7cc 100644
--- a/builtin/reflog.c
+++ b/builtin/reflog.c
@@ -653,6 +653,7 @@ static int cmd_reflog_expire(int argc, const char **argv, const char *prefix)
should_expire_reflog_ent,
reflog_expiry_cleanup,
&cb);
+ free(ref);
}
return status;
}