projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f0cb933
)
Fixed indentation and decreased reference count
author
Yoga Ramalingam
<yramalingam1@bloomberg.net>
Wed, 3 Dec 2014 19:37:06 +0000
(14:37 -0500)
committer
Yoga Ramalingam
<yramalingam1@bloomberg.net>
Wed, 3 Dec 2014 19:51:46 +0000
(14:51 -0500)
src/pyvalues.c
patch
|
blob
|
history
diff --git
a/src/pyvalues.c
b/src/pyvalues.c
index
137d5eb
..
78e6cf9
100644
(file)
--- a/
src/pyvalues.c
+++ b/
src/pyvalues.c
@@
-428,8
+428,10
@@
static meta_data_t *cpy_build_meta(PyObject *meta) {
return NULL;
}
s = PyList_Size(l);
- if (s <= 0)
- return NULL;
+ if (s <= 0) {
+ Py_XDECREF(l);
+ return NULL;
+ }
m = meta_data_create();
for (i = 0; i < s; ++i) {