From: Yoga Ramalingam Date: Wed, 3 Dec 2014 19:37:06 +0000 (-0500) Subject: Fixed indentation and decreased reference count X-Git-Tag: collectd-5.3.2~16^2 X-Git-Url: https://git.octo.it/?a=commitdiff_plain;h=082c59b439105cc5c0b787346ac2bdb9ca10e5a6;p=collectd.git Fixed indentation and decreased reference count --- diff --git a/src/pyvalues.c b/src/pyvalues.c index 137d5eb4..78e6cf9d 100644 --- 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) {