Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
9624a764
Commit
9624a764
authored
Sep 29, 2011
by
Charles-François Natali
Browse files
Options
Browse Files
Download
Plain Diff
Issue #13058: ossaudiodev: fix a file descriptor leak on error. Patch by Thomas
Jarosch.
parents
a0702ab1
5a4a1096
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
0 deletions
+5
-0
Misc/ACKS
Misc/ACKS
+1
-0
Misc/NEWS
Misc/NEWS
+3
-0
Modules/ossaudiodev.c
Modules/ossaudiodev.c
+1
-0
No files found.
Misc/ACKS
View file @
9624a764
...
@@ -463,6 +463,7 @@ Bertrand Janin
...
@@ -463,6 +463,7 @@ Bertrand Janin
Geert Jansen
Geert Jansen
Jack Jansen
Jack Jansen
Bill Janssen
Bill Janssen
Thomas Jarosch
Julien Jehannet
Julien Jehannet
Drew Jenkins
Drew Jenkins
Flemming Kjær Jensen
Flemming Kjær Jensen
...
...
Misc/NEWS
View file @
9624a764
...
@@ -1298,6 +1298,9 @@ Tools/Demos
...
@@ -1298,6 +1298,9 @@ Tools/Demos
Extension Modules
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.
- Issue #13013: ctypes: Fix a reference leak in PyCArrayType_from_ctype.
Thanks to Suman Saha for finding the bug and providing a patch.
Thanks to Suman Saha for finding the bug and providing a patch.
...
...
Modules/ossaudiodev.c
View file @
9624a764
...
@@ -129,6 +129,7 @@ newossobject(PyObject *arg)
...
@@ -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
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment