Skip to content

Commit b9520d5

Browse files
committed
Add fclose()
1 parent dc39d9a commit b9520d5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Python/fileutils.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2068,6 +2068,7 @@ _Py_fdprintf(int fd, const char *fmt, ...)
20682068
va_start(vargs, fmt);
20692069
int res = vfprintf(handle, fmt, vargs);
20702070
va_end(vargs);
2071+
fclose(handle);
20712072
if (res != 0) {
20722073
return -1;
20732074
}

0 commit comments

Comments
 (0)