mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-06 05:01:54 +00:00
repo: plug a couple of leaks
This commit is contained in:
parent
e77e53edb3
commit
146f5c75d7
@ -301,6 +301,8 @@ static int find_repo(
|
||||
if (!(error = read_gitfile(&repo_link, path.ptr))) {
|
||||
if (valid_repository_path(&repo_link))
|
||||
git_buf_swap(repo_path, &repo_link);
|
||||
|
||||
git_buf_free(&repo_link);
|
||||
break;
|
||||
}
|
||||
git_buf_free(&repo_link);
|
||||
@ -376,6 +378,7 @@ int git_repository_open_ext(
|
||||
return error;
|
||||
}
|
||||
|
||||
git_buf_free(&parent);
|
||||
*repo_ptr = repo;
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user