Fix double free
authorBert Vermeulen <bert@biot.com>
Wed, 8 May 2013 20:25:37 +0000 (22:25 +0200)
committerBert Vermeulen <bert@biot.com>
Wed, 8 May 2013 20:25:48 +0000 (22:25 +0200)
decoder.c

index de9b33b36ec293a48b368fbdab2bb249eb51d761..5eac220a55c5b0a2942963700dce6700efa19f11 100644 (file)
--- 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);