diff options
author | Bert Vermeulen <bert@biot.com> | 2013-05-05 17:20:13 +0200 |
---|---|---|
committer | Bert Vermeulen <bert@biot.com> | 2013-05-05 17:20:13 +0200 |
commit | e592ac8917d17665119b3647b5eae27fa387d6de (patch) | |
tree | 03bcde592fa8f7e87c52c324427eb65c5e577df9 /decoder.c | |
parent | 47dfa77d472795e6b5ad2ec3f3588a9619aec70f (diff) | |
download | libsigrokdecode-e592ac8917d17665119b3647b5eae27fa387d6de.tar.gz libsigrokdecode-e592ac8917d17665119b3647b5eae27fa387d6de.zip |
Fix various memory leaks
Diffstat (limited to 'decoder.c')
-rw-r--r-- | decoder.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; } |