diff options
author | Barry Warsaw <barry@python.org> | 2011-12-13 17:08:50 -0500 |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 2011-12-13 17:08:50 -0500 |
commit | 48abd4782f336de2d6dd228e58f86729778e26fb (patch) | |
tree | a26de8e38d6f1bd7a3c5778052f2f7e274a44df0 | |
parent | 033a0f2890495053fd6474d6f52d4a6e9c32cca1 (diff) | |
download | dbus-python-48abd4782f336de2d6dd228e58f86729778e26fb.tar.gz |
Don't leak the fast_seq object.
-rw-r--r-- | _dbus_bindings/server.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/_dbus_bindings/server.c b/_dbus_bindings/server.c index 48a1a2b..20c3d49 100644 --- a/_dbus_bindings/server.c +++ b/_dbus_bindings/server.c @@ -109,8 +109,10 @@ DBusPyServer_set_auth_mechanisms(Server *self, * on failure */ list[i] = PyString_AsString(am); - if (!list[i]) + if (!list[i]) { + Py_CLEAR(fast_seq); return FALSE; + } } list[length] = NULL; @@ -120,6 +122,7 @@ DBusPyServer_set_auth_mechanisms(Server *self, Py_END_ALLOW_THREADS } + Py_CLEAR(fast_seq); return TRUE; } |