summaryrefslogtreecommitdiff
path: root/controller.c
diff options
context:
space:
mode:
authorBert Vermeulen <bert@biot.com>2013-05-23 11:24:25 +0200
committerBert Vermeulen <bert@biot.com>2013-05-23 11:24:25 +0200
commitb88e336b86493ee3d893f563d1d847d901f8ce07 (patch)
treed697d9bce8134cf528220a734d2e418ec93ea23b /controller.c
parentca3fc3c0c042ecf509f8218e417655c04c9b9831 (diff)
downloadlibsigrokdecode-b88e336b86493ee3d893f563d1d847d901f8ce07.tar.gz
libsigrokdecode-b88e336b86493ee3d893f563d1d847d901f8ce07.zip
Fix double free
Diffstat (limited to 'controller.c')
-rw-r--r--controller.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/controller.c b/controller.c
index 2f76665..7987ea1 100644
--- a/controller.c
+++ b/controller.c
@@ -403,6 +403,7 @@ SRD_API int srd_inst_option_set(struct srd_decoder_inst *di,
if (PyDict_SetItemString(py_di_options, key, py_optval) == -1)
goto err_out;
g_free(key);
+ key = NULL;
}
ret = SRD_OK;