mirror of
https://github.com/python/cpython.git
synced 2025-12-15 21:44:50 +00:00
Fix memory leak. This is part of SF patch #478006.
This commit is contained in:
parent
f12a68ccd0
commit
03459a5cd7
2 changed files with 2 additions and 1 deletions
|
|
@ -103,6 +103,7 @@ newsadobject(PyObject *args)
|
|||
}
|
||||
if (fd < 0) {
|
||||
PyErr_SetFromErrnoWithFilename(SunAudioError, opendev);
|
||||
PyMem_DEL(ctldev);
|
||||
return NULL;
|
||||
}
|
||||
PyMem_DEL(ctldev);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue