Issue #13058: ossaudiodev: fix a file descriptor leak on error. Patch by Thomas
Jarosch.
This commit is contained in:
parent
169fa9345d
commit
564f89036f
|
@ -402,6 +402,7 @@ Kjetil Jacobsen
|
||||||
Geert Jansen
|
Geert Jansen
|
||||||
Jack Jansen
|
Jack Jansen
|
||||||
Bill Janssen
|
Bill Janssen
|
||||||
|
Thomas Jarosch
|
||||||
Drew Jenkins
|
Drew Jenkins
|
||||||
Flemming Kjær Jensen
|
Flemming Kjær Jensen
|
||||||
Jiba
|
Jiba
|
||||||
|
|
|
@ -50,6 +50,9 @@ Core and Builtins
|
||||||
Library
|
Library
|
||||||
-------
|
-------
|
||||||
|
|
||||||
|
- Issue #13058: ossaudiodev: fix a file descriptor leak on error. Patch by
|
||||||
|
Thomas Jarosch.
|
||||||
|
|
||||||
- Issue #12931: xmlrpclib now encodes Unicode URI to ISO-8859-1, instead of
|
- Issue #12931: xmlrpclib now encodes Unicode URI to ISO-8859-1, instead of
|
||||||
failing with a UnicodeDecodeError.
|
failing with a UnicodeDecodeError.
|
||||||
|
|
||||||
|
|
|
@ -129,6 +129,7 @@ newossobject(PyObject *arg)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ioctl(fd, SNDCTL_DSP_GETFMTS, &afmts) == -1) {
|
if (ioctl(fd, SNDCTL_DSP_GETFMTS, &afmts) == -1) {
|
||||||
|
close(fd);
|
||||||
PyErr_SetFromErrnoWithFilename(PyExc_IOError, devicename);
|
PyErr_SetFromErrnoWithFilename(PyExc_IOError, devicename);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue