From 855c20501baba9e0bcda546b6c07f20dc5648659 Mon Sep 17 00:00:00 2001 From: TingPing Date: Thu, 30 May 2013 22:23:00 -0300 Subject: fix crash --- plugins/python/python.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins') diff --git a/plugins/python/python.c b/plugins/python/python.c index 8b768799..2976faeb 100644 --- a/plugins/python/python.c +++ b/plugins/python/python.c @@ -934,10 +934,10 @@ Context_compare(ContextObject *a, ContextObject *b, int op) else { PyErr_SetString(PyExc_TypeError, "contexts are either equal or not equal"); - Py_INCREF(Py_None); ret = Py_None; } + Py_INCREF(ret); return ret; } -- cgit 1.4.1