summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: bd872d0)
raw | patch | inline | side by side (parent: bd872d0)
author | Sven Trenkel <collectd@semidefinite.de> | |
Wed, 21 Apr 2010 16:12:19 +0000 (18:12 +0200) | ||
committer | Sven Trenkel <collectd@semidefinite.de> | |
Wed, 21 Apr 2010 16:12:19 +0000 (18:12 +0200) |
src/cpython.h | patch | blob | history | |
src/pyvalues.c | patch | blob | history |
diff --git a/src/cpython.h b/src/cpython.h
index b5a1754a912132931df542e7d6081b98dc688bb3..2a14ce071795ab50c68c2eabcc058bb227e56f5f 100644 (file)
--- a/src/cpython.h
+++ b/src/cpython.h
* Sven Trenkel <collectd at semidefinite.de>
**/
+/* Some python versions don't include this by default. */
+
+#include <longintrepr.h>
+
/* These two macros are basicly Py_BEGIN_ALLOW_THREADS and Py_BEGIN_ALLOW_THREADS
* from the other direction. If a Python thread calls a C function
* Py_BEGIN_ALLOW_THREADS is used to allow other python threads to run because
diff --git a/src/pyvalues.c b/src/pyvalues.c
index 890dc4ea6c252c7f803d4b17a6d9d99cd86725b4..60462adb9658dfe73140ce0a6ef90c87b6604a48 100644 (file)
--- a/src/pyvalues.c
+++ b/src/pyvalues.c
if (PyErr_Occurred())
cpy_log_exception("building meta data");
Py_XDECREF(value);
- Py_DECREF(keystring);
+ Py_DECREF(key);
}
return m;
}