From 718a597cbdab426cb4d4b11b4cd6b83678e8b90d Mon Sep 17 00:00:00 2001 From: Fred Drake Date: Fri, 9 Nov 2001 16:00:41 +0000 Subject: Fix memory leak. This is part of SF patch #478006. --- Modules/sunaudiodev.c | 1 + 1 file changed, 1 insertion(+) (limited to 'Modules/sunaudiodev.c') 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); -- cgit v1.2.1