diff options
author | Garrett Regier <garrettregier@gmail.com> | 2013-11-12 22:50:08 -0800 |
---|---|---|
committer | Garrett Regier <garrettregier@gmail.com> | 2013-11-12 22:50:08 -0800 |
commit | 37a8556065119c0e8d1a495b88dd54a869cbfaf6 (patch) | |
tree | c775624c8cb08b3c65c5563ce94c4e331838ee0b /loaders | |
parent | ada8c28f719b28396535fdac6b163ea49580fe77 (diff) | |
download | libpeas-37a8556065119c0e8d1a495b88dd54a869cbfaf6.tar.gz |
Fix memory leak in python plugin loader
Diffstat (limited to 'loaders')
-rw-r--r-- | loaders/python/peas-plugin-loader-python.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/loaders/python/peas-plugin-loader-python.c b/loaders/python/peas-plugin-loader-python.c index 117e035..cdfcee7 100644 --- a/loaders/python/peas-plugin-loader-python.c +++ b/loaders/python/peas-plugin-loader-python.c @@ -92,6 +92,7 @@ find_python_extension_type (PeasPluginInfo *info, switch (PyObject_IsSubclass (value, pytype)) { case 1: + Py_DECREF (pytype); Py_DECREF (pygtype); return (PyTypeObject *) value; case 0: @@ -104,6 +105,7 @@ find_python_extension_type (PeasPluginInfo *info, } } + Py_DECREF (pytype); Py_DECREF (pygtype); return NULL; |