diff options
author | Rene Scharfe <l.s.r@web.de> | 2017-08-30 20:00:26 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-09-07 08:49:28 +0900 |
commit | b95c8ce8f3696bd11b38894bb775da17921cc3b8 (patch) | |
tree | e84d626bb0b0e25bcf30f39ada4eec7ebb05e383 /builtin | |
parent | remote: release strbuf after use in read_remote_branches() (diff) | |
download | tgif-b95c8ce8f3696bd11b38894bb775da17921cc3b8.tar.xz |
remote: release strbuf after use in migrate_file()
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/remote.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/builtin/remote.c b/builtin/remote.c index d0bf999abf..0a56d7da66 100644 --- 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; } |