From: Marek Schimara Date: Thu, 4 May 2017 08:29:50 +0000 (+0200) Subject: bindings/rrdtoolmodule.c: fix Coverity CID #32887 Explicit null dereferenced X-Git-Tag: v1.7.0~4^2~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a015ef3c5edba825fcce76775008b7ccfc4a8ef8;p=thirdparty%2Frrdtool-1.x.git bindings/rrdtoolmodule.c: fix Coverity CID #32887 Explicit null dereferenced --- diff --git a/bindings/python/rrdtoolmodule.c b/bindings/python/rrdtoolmodule.c index 4eb7f394..754f5d30 100644 --- a/bindings/python/rrdtoolmodule.c +++ b/bindings/python/rrdtoolmodule.c @@ -1271,7 +1271,8 @@ _rrdtool_fetch_cb_wrapper( } Py_DECREF(exc_type); - Py_DECREF(exc_value_str); + if (exc_value_str != NULL) + Py_DECREF(exc_value_str); if (exc_tb != NULL) Py_DECREF(exc_tb); goto gil_release_free_dsnamv_err;