aboutsummaryrefslogtreecommitdiffstats
path: root/builtin/reflog.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2021-10-29 15:43:13 -0700
committerJunio C Hamano <gitster@pobox.com>2021-10-29 15:43:13 -0700
commit192a3fa31dbb3bb5dbcc64b6587a2763839d784b (patch)
tree1bbcb177359e702323458b4d1c52dc51ce9a9cb4 /builtin/reflog.c
parent55b99febc40308985f319ae3feaa23070abebdb7 (diff)
parent3c8150497f3c77a2c57e73c53bd3de933b85d9a3 (diff)
downloadgit-192a3fa31dbb3bb5dbcc64b6587a2763839d784b.tar.gz
Merge branch 'ab/plug-random-leaks'
Leakfix. * ab/plug-random-leaks: reflog: free() ref given to us by dwim_log() submodule--helper: fix small memory leaks clone: fix a memory leak of the "git_dir" variable grep: fix a "path_list" memory leak grep: use object_array_clear() in cmd_grep() grep: prefer "struct grep_opt" over its "void *" equivalent
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;
}