summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2012-01-28 21:26:26 +0100
committerUwe Hermann <uwe@hermann-uwe.de>2012-01-28 21:26:26 +0100
commit6f858319a4dd20b243e5584ab7a60e54f5a50471 (patch)
tree199506356d472cb9f80476f0a60fe7b56e6a8cbc
parentfd4aa8aaed83f9f0041647b913e48ef95c1aab55 (diff)
downloadlibsigrokdecode-6f858319a4dd20b243e5584ab7a60e54f5a50471.tar.gz
libsigrokdecode-6f858319a4dd20b243e5584ab7a60e54f5a50471.zip
srd: Drop unneeded check, g_free() handles NULL fine.
-rw-r--r--controller.c3
1 files changed, 1 insertions, 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().");