aboutsummaryrefslogtreecommitdiffstats
path: root/builtin/reflog.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2025-08-01 11:27:11 -0700
committerJunio C Hamano <gitster@pobox.com>2025-08-01 11:27:11 -0700
commita2384a76e7d62ee5a628c82ee4e29c16c14c0168 (patch)
tree3c2a240673a5912999b7b4a86facc4691236f610 /builtin/reflog.c
parentMerge branch 'jc/do-not-scan-argv-without-parsing' (diff)
parentreflog: close leak of reflog expire entry (diff)
downloadgit-a2384a76e7d62ee5a628c82ee4e29c16c14c0168.tar.gz
git-a2384a76e7d62ee5a628c82ee4e29c16c14c0168.zip
Merge branch 'jk/unleak-reflog-expire-entry'
Leakfix. * jk/unleak-reflog-expire-entry: reflog: close leak of reflog expire entry
Diffstat (limited to 'builtin/reflog.c')
-rw-r--r--builtin/reflog.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/builtin/reflog.c b/builtin/reflog.c
index 3acaf3e32c..d4da41aaea 100644
--- a/builtin/reflog.c
+++ b/builtin/reflog.c
@@ -283,6 +283,9 @@ static int cmd_reflog_expire(int argc, const char **argv, const char *prefix,
&cb);
free(ref);
}
+
+ reflog_clear_expire_config(&opts);
+
return status;
}