Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
clone: release strbuf after use in remove_junk()
author
Rene Scharfe
<l.s.r@web.de>
Wed, 30 Aug 2017 17:49:37 +0000
(19:49 +0200)
committer
Junio C Hamano
<gitster@pobox.com>
Wed, 6 Sep 2017 23:49:27 +0000
(08:49 +0900)
Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/clone.c
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (from parent 1:
25a8f80
)
diff --git
a/builtin/clone.c
b/builtin/clone.c
index 8d11b570a1ca43eae3224ade805352b8a447423e..dbddd98f80d6660f2cde190a0e121022f079071d 100644
(file)
--- 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);
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)
}
static void remove_junk_on_signal(int signo)