X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fpython.c;h=d750d95b503e7fbbff9e78c375eeef3e809e79be;hb=57c08630c7b8dfc4c6b094f8bcb16450d0171a73;hp=a33bb4778dcd607ff287e6316e45171284f2da42;hpb=71cc6701e311071e1d9bfebbe53f9ac324cc7dfb;p=collectd.git 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