Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
remote: release strbuf after use in migrate_file()
author
Rene Scharfe
<l.s.r@web.de>
Wed, 30 Aug 2017 18:00:26 +0000
(20:00 +0200)
committer
Junio C Hamano
<gitster@pobox.com>
Wed, 6 Sep 2017 23:49:28 +0000
(08:49 +0900)
Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/remote.c
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(from parent 1:
e2581b7
)
diff --git
a/builtin/remote.c
b/builtin/remote.c
index d0bf999abf7459f45dec25e4f1920b766a44aea1..0a56d7da669a40b970a35ee017227a1eddd5d091 100644
(file)
--- a/
builtin/remote.c
+++ b/
builtin/remote.c
@@
-596,6
+596,7
@@
static int migrate_file(struct remote *remote)
unlink_or_warn(git_path("remotes/%s", remote->name));
else if (remote->origin == REMOTE_BRANCHES)
unlink_or_warn(git_path("branches/%s", remote->name));
+ strbuf_release(&buf);
return 0;
}