From e592ac8917d17665119b3647b5eae27fa387d6de Mon Sep 17 00:00:00 2001 From: Bert Vermeulen Date: Sun, 5 May 2013 17:20:13 +0200 Subject: Fix various memory leaks --- decoder.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'decoder.c') diff --git a/decoder.c b/decoder.c index a7e5822..de9b33b 100644 --- a/decoder.c +++ b/decoder.c @@ -217,6 +217,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); } Py_DecRef(py_keys); Py_DecRef(py_values); @@ -493,7 +494,7 @@ SRD_API int srd_decoder_unload(struct srd_decoder *dec) /* The module itself. */ Py_XDECREF(dec->py_mod); - /* TODO: (g_)free dec itself? */ + g_free(dec); return SRD_OK; } -- cgit v1.2.3-70-g09d2