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
03459a5c
Commit
03459a5c
authored
Nov 09, 2001
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix memory leak. This is part of SF patch #478006.
parent
f12a68cc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
Modules/sunaudiodev.c
Modules/sunaudiodev.c
+1
-0
Python/thread_pthread.h
Python/thread_pthread.h
+1
-1
No files found.
Modules/sunaudiodev.c
View file @
03459a5c
...
...
@@ -103,6 +103,7 @@ newsadobject(PyObject *args)
}
if
(
fd
<
0
)
{
PyErr_SetFromErrnoWithFilename
(
SunAudioError
,
opendev
);
PyMem_DEL
(
ctldev
);
return
NULL
;
}
PyMem_DEL
(
ctldev
);
...
...
Python/thread_pthread.h
View file @
03459a5c
...
...
@@ -200,7 +200,7 @@ PyThread_start_new_thread(void (*func)(void *), void *arg)
/* Restore signal mask for original thread */
SET_THREAD_SIGMASK
(
SIG_SETMASK
,
&
oldmask
,
NULL
);
#if
def THREAD_STACK_SIZE
#if
defined(THREAD_STACK_SIZE) || defined(PTHREAD_SYSTEM_SCHED_SUPPORTED)
pthread_attr_destroy
(
&
attrs
);
#endif
if
(
success
==
0
)
{
...
...
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