From feca5996d58cf1c61c187369389accec284ac43b Mon Sep 17 00:00:00 2001 From: Sven Trenkel Date: Mon, 14 Dec 2009 18:49:02 +0100 Subject: [PATCH] Fixed refcount error. --- src/python.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/python.c b/src/python.c index a33bb477..d750d95b 100644 --- a/src/python.c +++ b/src/python.c @@ -302,7 +302,6 @@ static void cpy_log_exception(const char *context) { line = PyList_GET_ITEM(list, i); /* Borrowed reference. */ s = strdup(PyString_AsString(line)); - Py_DECREF(line); if (s[strlen(s) - 1] == '\n') s[strlen(s) - 1] = 0; Py_BEGIN_ALLOW_THREADS -- 2.30.2