mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-29 17:05:49 +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;
|
goto out;
|
||||||
|
|
||||||
out:
|
out:
|
||||||
if (error)
|
free(name);
|
||||||
free(name);
|
|
||||||
git_buf_free(&parent);
|
git_buf_free(&parent);
|
||||||
|
|
||||||
return error;
|
return error;
|
||||||
|
Loading…
Reference in New Issue
Block a user