diff options
| author | Ævar Arnfjörð Bjarmason <avarab@gmail.com> | 2021-10-22 10:55:42 +0200 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2021-10-23 10:45:25 -0700 |
| commit | 27ff1fbc5dd5ca5f03a65bfc734c913703e8cdf7 (patch) | |
| tree | 6b45357a4f0ba99d98c46104a59affa3a39e9b15 /builtin/commit-graph.c | |
| parent | grep: fix a "path_list" memory leak (diff) | |
| download | git-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
