Skip to content

Commit b95c8ce

Browse files
rscharfegitster
authored andcommitted
remote: release strbuf after use in migrate_file()
Signed-off-by: Rene Scharfe <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent e2581b7 commit b95c8ce

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

builtin/remote.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -596,6 +596,7 @@ static int migrate_file(struct remote *remote)
596596
unlink_or_warn(git_path("remotes/%s", remote->name));
597597
else if (remote->origin == REMOTE_BRANCHES)
598598
unlink_or_warn(git_path("branches/%s", remote->name));
599+
strbuf_release(&buf);
599600

600601
return 0;
601602
}

0 commit comments

Comments
 (0)