diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2012-01-28 21:26:26 +0100 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2012-01-28 21:26:26 +0100 |
commit | 6f858319a4dd20b243e5584ab7a60e54f5a50471 (patch) | |
tree | 199506356d472cb9f80476f0a60fe7b56e6a8cbc | |
parent | fd4aa8aaed83f9f0041647b913e48ef95c1aab55 (diff) | |
download | libsigrokdecode-6f858319a4dd20b243e5584ab7a60e54f5a50471.tar.gz libsigrokdecode-6f858319a4dd20b243e5584ab7a60e54f5a50471.zip |
srd: Drop unneeded check, g_free() handles NULL fine.
-rw-r--r-- | controller.c | 3 |
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()."); |