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
f197e7b9
Commit
f197e7b9
authored
Sep 29, 2011
by
Charles-François Natali
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #13058: ossaudiodev: fix a file descriptor leak on error. Patch by Thomas
Jarosch.
parent
2fd32b06
Changes
3
Show 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 @
f197e7b9
...
@@ -402,6 +402,7 @@ Kjetil Jacobsen
...
@@ -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
...
...
Misc/NEWS
View file @
f197e7b9
...
@@ -50,6 +50,9 @@ Core and Builtins
...
@@ -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
.
...
...
Modules/ossaudiodev.c
View file @
f197e7b9
...
@@ -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