mirror of https://github.com/python/cpython
Issue #13058: ossaudiodev: fix a file descriptor leak on error. Patch by Thomas
Jarosch.
This commit is contained in:
parent
b86ecf4bd1
commit
5a4a109694
|
@ -436,6 +436,7 @@ Bertrand Janin
|
|||
Geert Jansen
|
||||
Jack Jansen
|
||||
Bill Janssen
|
||||
Thomas Jarosch
|
||||
Drew Jenkins
|
||||
Flemming Kjær Jensen
|
||||
MunSic Jeong
|
||||
|
|
|
@ -82,6 +82,9 @@ Tests
|
|||
Extension Modules
|
||||
-----------------
|
||||
|
||||
- Issue #13058: ossaudiodev: fix a file descriptor leak on error. Patch by
|
||||
Thomas Jarosch.
|
||||
|
||||
- Issue #13013: ctypes: Fix a reference leak in PyCArrayType_from_ctype.
|
||||
Thanks to Suman Saha for finding the bug and providing a patch.
|
||||
|
||||
|
|
|
@ -129,6 +129,7 @@ newossobject(PyObject *arg)
|
|||
}
|
||||
|
||||
if (ioctl(fd, SNDCTL_DSP_GETFMTS, &afmts) == -1) {
|
||||
close(fd);
|
||||
PyErr_SetFromErrnoWithFilename(PyExc_IOError, devicename);
|
||||
return NULL;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue