mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-28 17:24:59 +00:00
checkout: fix resource leak
This commit is contained in:
parent
39c9dd24d3
commit
e262545753
@ -1487,8 +1487,10 @@ static int blob_content_to_file(
|
||||
if (!data->opts.disable_filters &&
|
||||
(error = git_filter_list__load_ext(
|
||||
&fl, data->repo, blob, hint_path,
|
||||
GIT_FILTER_TO_WORKTREE, &filter_opts)))
|
||||
GIT_FILTER_TO_WORKTREE, &filter_opts))) {
|
||||
p_close(fd);
|
||||
return error;
|
||||
}
|
||||
|
||||
/* setup the writer */
|
||||
memset(&writer, 0, sizeof(struct checkout_stream));
|
||||
|
Loading…
Reference in New Issue
Block a user