projects
/
libsigrokdecode.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fd4aa8a
)
srd: Drop unneeded check, g_free() handles NULL fine.
author
Uwe Hermann
<uwe@hermann-uwe.de>
Sat, 28 Jan 2012 20:26:26 +0000
(21:26 +0100)
committer
Uwe Hermann
<uwe@hermann-uwe.de>
Sat, 28 Jan 2012 20:26:26 +0000
(21:26 +0100)
controller.c
patch
|
blob
|
history
diff --git
a/controller.c
b/controller.c
index ac0d73fc1be80a23cbbbe14c6183376fef687500..20927cf9b80525a32b5b60f960dc60471cbd6734 100644
(file)
--- 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().");