From: Ævar Arnfjörð Bjarmason Date: Fri, 22 Oct 2021 08:55:44 GMT Subject: [PATCH v2 6/6] reflog: free() ref given to us by dwim_log() Message-ID: In-Reply-To: When dwim_log() returns the "ref" is always ether NULL or an xstrdup()'d string. Signed-off-by: Ævar Arnfjörð Bjarmason --- builtin/reflog.c | 1 + 1 file changed, 1 insertion(+) diff --git a/builtin/reflog.c b/builtin/reflog.c index bd4c669918d..175c83e7cc2 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; } -- 2.33.1.1494.g88b39a443e1