From 082c59b439105cc5c0b787346ac2bdb9ca10e5a6 Mon Sep 17 00:00:00 2001 From: Yoga Ramalingam Date: Wed, 3 Dec 2014 14:37:06 -0500 Subject: [PATCH] Fixed indentation and decreased reference count --- src/pyvalues.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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) { -- 2.30.2