summaryrefslogtreecommitdiff
path: root/Modules/sunaudiodev.c
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2001-11-09 16:00:41 +0000
committerFred Drake <fdrake@acm.org>2001-11-09 16:00:41 +0000
commit718a597cbdab426cb4d4b11b4cd6b83678e8b90d (patch)
tree08c2bb58799f51142a40128b23c52c94e5a15474 /Modules/sunaudiodev.c
parentb5533abb4646ccc732cfb158cdc7bc25ac5375f5 (diff)
downloadcpython-718a597cbdab426cb4d4b11b4cd6b83678e8b90d.tar.gz
Fix memory leak. This is part of SF patch #478006.
Diffstat (limited to 'Modules/sunaudiodev.c')
-rw-r--r--Modules/sunaudiodev.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/sunaudiodev.c b/Modules/sunaudiodev.c
index 7bf867bcb2..e4c4c9f42a 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);