From b95c8ce8f3696bd11b38894bb775da17921cc3b8 Mon Sep 17 00:00:00 2001 From: Rene Scharfe Date: Wed, 30 Aug 2017 20:00:26 +0200 Subject: [PATCH] remote: release strbuf after use in migrate_file() Signed-off-by: Rene Scharfe Signed-off-by: Junio C Hamano --- builtin/remote.c | 1 + 1 file changed, 1 insertion(+) 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; } -- 2.47.1