summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2001-11-09 16:00:41 (GMT)
committerFred Drake <fdrake@acm.org>2001-11-09 16:00:41 (GMT)
commit03459a5cd776eb5d3c7e427d4007dc1f983975b5 (patch)
treee2535e8c3ef2415c50965cd3010c8046357a51e3 /Modules
parentf12a68ccd0b40821fd15044ddb0d51e488d92efd (diff)
downloadcpython-03459a5cd776eb5d3c7e427d4007dc1f983975b5.zip
cpython-03459a5cd776eb5d3c7e427d4007dc1f983975b5.tar.gz
cpython-03459a5cd776eb5d3c7e427d4007dc1f983975b5.tar.bz2
Fix memory leak. This is part of SF patch #478006.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/sunaudiodev.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/sunaudiodev.c b/Modules/sunaudiodev.c
index 7bf867b..e4c4c9f 100644
--- a/Modules/sunaudiodev.c
+++ b/Modules/sunaudiodev.c
@@ -103,6 +103,7 @@ newsadobject(PyObject *args)
}
if (fd < 0) {
PyErr_SetFromErrnoWithFilename(SunAudioError, opendev);
+ PyMem_DEL(ctldev);
return NULL;
}
PyMem_DEL(ctldev);