summaryrefslogtreecommitdiff
path: root/decoder.c
diff options
context:
space:
mode:
authorBert Vermeulen <bert@biot.com>2013-05-08 22:25:37 +0200
committerBert Vermeulen <bert@biot.com>2013-05-08 22:25:48 +0200
commitca3fc3c0c042ecf509f8218e417655c04c9b9831 (patch)
tree74782d8804917f98cbde154985c83839dfdfd156 /decoder.c
parent3abc83b996547a69bad906ec748f30874aae4796 (diff)
downloadlibsigrokdecode-ca3fc3c0c042ecf509f8218e417655c04c9b9831.tar.gz
libsigrokdecode-ca3fc3c0c042ecf509f8218e417655c04c9b9831.zip
Fix double free
Diffstat (limited to 'decoder.c')
-rw-r--r--decoder.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/decoder.c b/decoder.c
index de9b33b..5eac220 100644
--- a/decoder.c
+++ b/decoder.c
@@ -218,6 +218,7 @@ static int get_options(struct srd_decoder *d)
g_variant_ref_sink(o->def);
d->options = g_slist_append(d->options, o);
g_free(key);
+ key = NULL;
}
Py_DecRef(py_keys);
Py_DecRef(py_values);