diff options
author | Fred Drake <fdrake@acm.org> | 2001-11-09 16:00:41 +0000 |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2001-11-09 16:00:41 +0000 |
commit | 718a597cbdab426cb4d4b11b4cd6b83678e8b90d (patch) | |
tree | 08c2bb58799f51142a40128b23c52c94e5a15474 /Modules/sunaudiodev.c | |
parent | b5533abb4646ccc732cfb158cdc7bc25ac5375f5 (diff) | |
download | cpython-718a597cbdab426cb4d4b11b4cd6b83678e8b90d.tar.gz |
Fix memory leak. This is part of SF patch #478006.
Diffstat (limited to 'Modules/sunaudiodev.c')
-rw-r--r-- | Modules/sunaudiodev.c | 1 |
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); |