diff options
author | Guido van Rossum <guido@python.org> | 2000-09-01 15:35:12 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2000-09-01 15:35:12 (GMT) |
commit | 7c55404207378e662b88253f004041e1a4494f01 (patch) | |
tree | dd1adb05bd23bd3e4f3c6719e91a7a93cbbb8bf2 /Modules | |
parent | 1688f378cb338285b58d9a9f6d3084954ce36499 (diff) | |
download | cpython-7c55404207378e662b88253f004041e1a4494f01.zip cpython-7c55404207378e662b88253f004041e1a4494f01.tar.gz cpython-7c55404207378e662b88253f004041e1a4494f01.tar.bz2 |
Move the Py_DECREF(x) after the error: label so that we don't leak x
when PyDict_SetItemString() fails.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/linuxaudiodev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/linuxaudiodev.c b/Modules/linuxaudiodev.c index 509823e..5b18f16 100644 --- a/Modules/linuxaudiodev.c +++ b/Modules/linuxaudiodev.c @@ -440,8 +440,8 @@ initlinuxaudiodev(void) x = PyInt_FromLong((long) AFMT_S16_LE); if (x == NULL || PyDict_SetItemString(d, "AFMT_S16_LE", x) < 0) goto error; - Py_DECREF(x); error: + Py_DECREF(x); return; } |