From 6f858319a4dd20b243e5584ab7a60e54f5a50471 Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Sat, 28 Jan 2012 21:26:26 +0100 Subject: srd: Drop unneeded check, g_free() handles NULL fine. --- controller.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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()."); -- cgit v1.2.3-70-g09d2