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: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F839%2Fhead;p=thirdparty%2Fcollectd.git Fixed indentation and decreased reference count --- diff --git a/src/pyvalues.c b/src/pyvalues.c index 137d5eb44..78e6cf9d4 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) {