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>

Ævar Arnfjörð Bjarmason committed Oct 22, 2021 at 10:55 UTC 3c8150497f3c77a2c57e73c53bd3de933b85d9a3
1 file changed +1
builtin/reflog.c
+1
@@ -653,6 +653,7 @@ static int cmd_reflog_expire(int argc, const char **argv, const char *prefix)
653 should_expire_reflog_ent,
654 reflog_expiry_cleanup,
655 &cb);
656 + free(ref);
657 }
658 return status;
659 }