Commit 9624a764 authored by Charles-François Natali's avatar Charles-François Natali

Issue #13058: ossaudiodev: fix a file descriptor leak on error. Patch by Thomas

Jarosch.
parents a0702ab1 5a4a1096
......@@ -463,6 +463,7 @@ Bertrand Janin
Geert Jansen
Jack Jansen
Bill Janssen
Thomas Jarosch
Julien Jehannet
Drew Jenkins
Flemming Kjær Jensen
......
......@@ -1298,6 +1298,9 @@ Tools/Demos
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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment