summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
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);