Skip to content

Commit b49eddd

Browse files
author
Edward Thomson
committed
checkout: let the stream writer close the fd
1 parent f7c0125 commit b49eddd

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/checkout.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1397,7 +1397,7 @@ static int checkout_stream_close(git_writestream *s)
13971397
assert(stream && stream->open);
13981398

13991399
stream->open = 0;
1400-
return 0;
1400+
return p_close(stream->fd);
14011401
}
14021402

14031403
static void checkout_stream_free(git_writestream *s)
@@ -1461,7 +1461,6 @@ static int blob_content_to_file(
14611461
assert(writer.open == 0);
14621462

14631463
git_filter_list_free(fl);
1464-
p_close(fd);
14651464

14661465
if (error < 0)
14671466
return error;

0 commit comments

Comments
 (0)