mirror of
https://github.com/git/git
synced 2024-08-24 18:26:02 +00:00
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>
This commit is contained in:
parent
e2581b7221
commit
b95c8ce8f3
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue