From: Rene Scharfe Date: Wed, 30 Aug 2017 17:49:37 +0000 (+0200) Subject: clone: release strbuf after use in remove_junk() X-Git-Tag: v2.15.0-rc0~78^2~28 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/9c18b5488eb78d293578a4914fc8646a0e40460a?ds=sidebyside;hp=25a8f80a8482d74225587fb2f667a8f296a58c48 clone: release strbuf after use in remove_junk() Signed-off-by: Rene Scharfe Signed-off-by: Junio C Hamano --- 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)