summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2019-11-16 22:49:30 +0100
committerUwe Hermann <uwe@hermann-uwe.de>2019-11-16 22:49:30 +0100
commit8c5c361a0e312fd8dab699c322b2e4db3c598019 (patch)
tree7df4990f4096bd0716efac19bd1d8c83060f8ce9
parent0878d4ba87bbef61248942e856528ebfb18f38eb (diff)
downloadlibsigrokdecode-8c5c361a0e312fd8dab699c322b2e4db3c598019.tar.gz
libsigrokdecode-8c5c361a0e312fd8dab699c322b2e4db3c598019.zip
condition_list_free(): Fix a memory leak.
-rw-r--r--instance.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/instance.c b/instance.c
index 23732dd..52fb43b 100644
--- a/instance.c
+++ b/instance.c
@@ -795,6 +795,7 @@ SRD_PRIV void condition_list_free(struct srd_decoder_inst *di)
g_slist_free_full(ll, g_free);
}
+ g_slist_free(di->condition_list);
di->condition_list = NULL;
}