summaryrefslogtreecommitdiffstats
path: root/bindings/python
diff options
context:
space:
mode:
authorBenjamin Dauvergne <bdauvergne@entrouvert.com>2011-11-18 15:36:57 +0100
committerBenjamin Dauvergne <bdauvergne@entrouvert.com>2011-11-18 15:36:57 +0100
commit055b405387f7e510ff8b0d0dc044485ba4398e71 (patch)
treee6172ad22d6d85fe04b1329a5b87877943ed7f59 /bindings/python
parent8002502152456e2798b91d2369e95f3ec140de06 (diff)
parentf286c7cb5ced1d050520acd93fd05bb8c124eb32 (diff)
downloadlasso-055b405387f7e510ff8b0d0dc044485ba4398e71.tar.gz
lasso-055b405387f7e510ff8b0d0dc044485ba4398e71.tar.xz
lasso-055b405387f7e510ff8b0d0dc044485ba4398e71.zip
Merge branch 'extension-abi-respecting'
Diffstat (limited to 'bindings/python')
-rw-r--r--bindings/python/wrapper_top.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/bindings/python/wrapper_top.c b/bindings/python/wrapper_top.c
index 7879bb13..c80bf1d6 100644
--- a/bindings/python/wrapper_top.c
+++ b/bindings/python/wrapper_top.c
@@ -606,8 +606,9 @@ static PyObject *get_logger_object() {
}
/* XXX: needed so that PyImport_ImportModule("logging") always works */
logging_module = PyImport_ImportModule("sys");
- if (logging_module)
+ if (logging_module) {
Py_DECREF(logging_module);
+ }
logging_module = PyImport_ImportModule("logging");
if (logging_module) {
_logger_object = PyObject_CallMethod(logging_module, "getLogger",