projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
gps plugin: Store timeout and pause as cdtime_t.
[collectd.git]
/
src
/
pyvalues.c
diff --git
a/src/pyvalues.c
b/src/pyvalues.c
index
4f5c4ce
..
78e6cf9
100644
(file)
--- a/
src/pyvalues.c
+++ b/
src/pyvalues.c
@@
-427,10
+427,11
@@
static meta_data_t *cpy_build_meta(PyObject *meta) {
cpy_log_exception("building meta data");
return NULL;
}
-
s = PyList_Size(l);
- if (s < 0)
+ if (s <= 0) {
+ Py_XDECREF(l);
return NULL;
+ }
m = meta_data_create();
for (i = 0; i < s; ++i) {