git.99rst.org
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
25a8f80
)
clone: release strbuf after use in remove_junk()
author
Rene Scharfe
<redacted>
Wed, 30 Aug 2017 17:49:37 +0000
(19:49 +0200)
committer
Junio C Hamano
<redacted>
Wed, 6 Sep 2017 23:49:27 +0000
(08:49 +0900)
Signed-off-by: Rene Scharfe <redacted>
Signed-off-by: Junio C Hamano <redacted>
builtin/clone.c
patch
|
blob
|
history
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);
- strbuf_reset(&sb);
}
+ strbuf_release(&sb);
}
static void remove_junk_on_signal(int signo)
git clone https://git.99rst.org/PROJECT