Permalink
Browse files

Don't decref Py_None in case (#842)

  • Loading branch information...
commx authored and oetiker committed Nov 22, 2017
1 parent 3eca07c commit 239ebb69d486d57012ae41f38b8c80b9680e4221
Showing with 3 additions and 1 deletion.
  1. +3 −1 bindings/python/rrdtoolmodule.c
@@ -1064,7 +1064,9 @@ _rrdtool_lastupdate(PyObject *Py_UNUSED(self), PyObject *args)
}
PyDict_SetItemString(ds_dict, ds_names[i], val);
Py_DECREF(val);
if (val != Py_None)
Py_DECREF(val);
free(last_ds[i]);
free(ds_names[i]);

0 comments on commit 239ebb6

Please sign in to comment.