diff options
author | Fred Drake <fdrake@acm.org> | 2001-11-09 16:00:41 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2001-11-09 16:00:41 (GMT) |
commit | 03459a5cd776eb5d3c7e427d4007dc1f983975b5 (patch) | |
tree | e2535e8c3ef2415c50965cd3010c8046357a51e3 /Modules/sunaudiodev.c | |
parent | f12a68ccd0b40821fd15044ddb0d51e488d92efd (diff) | |
download | cpython-03459a5cd776eb5d3c7e427d4007dc1f983975b5.zip cpython-03459a5cd776eb5d3c7e427d4007dc1f983975b5.tar.gz cpython-03459a5cd776eb5d3c7e427d4007dc1f983975b5.tar.bz2 |
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 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); |