From 411f10cb03d893a76738af4176af43665f37f791 Mon Sep 17 00:00:00 2001 From: Marek Schimara Date: Thu, 4 May 2017 10:42:22 +0200 Subject: [PATCH] bindings/rrdtoolmodule.c: fix Coverity CIDs #32888, #32889 Resource leak --- bindings/python/rrdtoolmodule.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/bindings/python/rrdtoolmodule.c b/bindings/python/rrdtoolmodule.c index 754f5d30..d36dc51e 100644 --- a/bindings/python/rrdtoolmodule.c +++ b/bindings/python/rrdtoolmodule.c @@ -469,11 +469,10 @@ _rrdtool_fetch(PyObject *Py_UNUSED(self), PyObject *args) for (i = 0; i < ds_cnt; i++) rrd_freemem(ds_namv[i]); - - rrd_freemem(ds_namv); - rrd_freemem(data); } + rrd_freemem(ds_namv); + rrd_freemem(data); destroy_args(); return ret; } -- 2.47.2