diff options
author | Rene Scharfe <l.s.r@web.de> | 2017-08-30 19:49:37 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-09-07 08:49:27 +0900 |
commit | 9c18b5488eb78d293578a4914fc8646a0e40460a (patch) | |
tree | eb43b9e9b9db82e0950a91dd625736c0558ed277 /builtin | |
parent | 25a8f80a8482d74225587fb2f667a8f296a58c48 (diff) | |
download | git-9c18b5488eb78d293578a4914fc8646a0e40460a.tar.gz |
clone: release strbuf after use in remove_junk()
Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin')
-rw-r--r-- | builtin/clone.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/clone.c b/builtin/clone.c index 8d11b570a1..dbddd98f80 100644 --- a/builtin/clone.c +++ b/builtin/clone.c @@ -507,8 +507,8 @@ static void remove_junk(void) if (junk_work_tree) { strbuf_addstr(&sb, junk_work_tree); remove_dir_recursively(&sb, 0); - strbuf_reset(&sb); } + strbuf_release(&sb); } static void remove_junk_on_signal(int signo) |