Commit fbdf2a79 by Patrick Steinhardt

worktree: unconditionally free the worktree's name

parent 4004d68f
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment