From: Uwe Hermann Date: Sat, 28 Jan 2012 20:26:26 +0000 (+0100) Subject: srd: Drop unneeded check, g_free() handles NULL fine. X-Git-Tag: libsigrokdecode-0.1.0~87 X-Git-Url: https://sigrok.org/gitweb/?p=libsigrokdecode.git;a=commitdiff_plain;h=6f858319a4dd20b243e5584ab7a60e54f5a50471 srd: Drop unneeded check, g_free() handles NULL fine. --- diff --git a/controller.c b/controller.c index ac0d73f..20927cf 100644 --- a/controller.c +++ b/controller.c @@ -272,8 +272,7 @@ err_out: Py_XDECREF(py_di_options); Py_XDECREF(py_dec_optkeys); Py_XDECREF(py_dec_options); - if (key) - g_free(key); + g_free(key); if (PyErr_Occurred()) catch_exception("Stray exception in srd_instance_set_options().");