mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-28 12:01:40 +00:00
worktree: unconditionally free the worktree's name
This commit is contained in:
parent
4004d68f99
commit
fbdf2a79d5
@ -212,8 +212,7 @@ int git_worktree_open_from_repository(git_worktree **out, git_repository *repo)
|
||||
goto out;
|
||||
|
||||
out:
|
||||
if (error)
|
||||
free(name);
|
||||
free(name);
|
||||
git_buf_free(&parent);
|
||||
|
||||
return error;
|
||||
|
Loading…
Reference in New Issue
Block a user