aboutsummaryrefslogtreecommitdiffstats
path: root/builtin/commit-graph.c
diff options
context:
space:
mode:
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>2021-10-22 10:55:42 +0200
committerJunio C Hamano <gitster@pobox.com>2021-10-23 10:45:25 -0700
commit27ff1fbc5dd5ca5f03a65bfc734c913703e8cdf7 (patch)
tree6b45357a4f0ba99d98c46104a59affa3a39e9b15 /builtin/commit-graph.c
parentgrep: fix a "path_list" memory leak (diff)
downloadgit-27ff1fbc5dd5ca5f03a65bfc734c913703e8cdf7.tar.gz
git-27ff1fbc5dd5ca5f03a65bfc734c913703e8cdf7.zip
clone: fix a memory leak of the "git_dir" variable
At this point in cmd_clone the "git_dir" is always either an xstrdup()'d string, or something we got from mkpathdup(). Let's free() it before we clobber it. Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/commit-graph.c')
0 files changed, 0 insertions, 0 deletions