summaryrefslogtreecommitdiff
path: root/decoder.c
diff options
context:
space:
mode:
authorBert Vermeulen <bert@biot.com>2013-05-05 17:20:13 +0200
committerBert Vermeulen <bert@biot.com>2013-05-05 17:20:13 +0200
commite592ac8917d17665119b3647b5eae27fa387d6de (patch)
tree03bcde592fa8f7e87c52c324427eb65c5e577df9 /decoder.c
parent47dfa77d472795e6b5ad2ec3f3588a9619aec70f (diff)
downloadlibsigrokdecode-e592ac8917d17665119b3647b5eae27fa387d6de.tar.gz
libsigrokdecode-e592ac8917d17665119b3647b5eae27fa387d6de.zip
Fix various memory leaks
Diffstat (limited to 'decoder.c')
-rw-r--r--decoder.c3
1 files changed, 2 insertions, 1 deletions
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;
}