summaryrefslogtreecommitdiff
path: root/builtin/remote.c
diff options
context:
space:
mode:
authorRene Scharfe <l.s.r@web.de>2017-08-30 18:00:26 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-09-06 23:49:28 (GMT)
commitb95c8ce8f3696bd11b38894bb775da17921cc3b8 (patch)
treee84d626bb0b0e25bcf30f39ada4eec7ebb05e383 /builtin/remote.c
parente2581b7221f52c30432dfc1a8934abd82b610e7c (diff)
downloadgit-b95c8ce8f3696bd11b38894bb775da17921cc3b8.zip
git-b95c8ce8f3696bd11b38894bb775da17921cc3b8.tar.gz
git-b95c8ce8f3696bd11b38894bb775da17921cc3b8.tar.bz2
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/remote.c')
-rw-r--r--builtin/remote.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/builtin/remote.c b/builtin/remote.c
index d0bf999..0a56d7d 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;
}