summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 94c927f)
raw | patch | inline | side by side (parent: 94c927f)
author | Sven Trenkel <collectd@semidefinite.de> | |
Mon, 14 Dec 2009 17:49:02 +0000 (18:49 +0100) | ||
committer | Sven Trenkel <collectd@semidefinite.de> | |
Mon, 14 Dec 2009 17:49:02 +0000 (18:49 +0100) |
src/python.c | patch | blob | history |
diff --git a/src/python.c b/src/python.c
index a33bb4778dcd607ff287e6316e45171284f2da42..d750d95b503e7fbbff9e78c375eeef3e809e79be 100644 (file)
--- a/src/python.c
+++ b/src/python.c
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