summaryrefslogtreecommitdiff
path: root/builtin/notes.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/notes.c
parentb202e51b15401207667261f2cb384e6faa6ed5c3 (diff)
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/notes.c')
0 files changed, 0 insertions, 0 deletions