mirror of
https://git.proxmox.com/git/libgit2
synced 2025-06-21 15:07:23 +00:00
checkout: let the stream writer close the fd
This commit is contained in:
parent
f7c0125f47
commit
b49edddcd0
@ -1397,7 +1397,7 @@ static int checkout_stream_close(git_writestream *s)
|
|||||||
assert(stream && stream->open);
|
assert(stream && stream->open);
|
||||||
|
|
||||||
stream->open = 0;
|
stream->open = 0;
|
||||||
return 0;
|
return p_close(stream->fd);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void checkout_stream_free(git_writestream *s)
|
static void checkout_stream_free(git_writestream *s)
|
||||||
@ -1461,7 +1461,6 @@ static int blob_content_to_file(
|
|||||||
assert(writer.open == 0);
|
assert(writer.open == 0);
|
||||||
|
|
||||||
git_filter_list_free(fl);
|
git_filter_list_free(fl);
|
||||||
p_close(fd);
|
|
||||||
|
|
||||||
if (error < 0)
|
if (error < 0)
|
||||||
return error;
|
return error;
|
||||||
|
Loading…
Reference in New Issue
Block a user