From: Bert Vermeulen Date: Wed, 8 May 2013 20:25:37 +0000 (+0200) Subject: Fix double free X-Git-Tag: libsigrokdecode-0.3.0~348 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=ca3fc3c0c042ecf509f8218e417655c04c9b9831;p=libsigrokdecode.git Fix double free --- 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);