From: Bert Vermeulen Date: Thu, 23 May 2013 09:24:25 +0000 (+0200) Subject: Fix double free X-Git-Tag: libsigrokdecode-0.3.0~347 X-Git-Url: https://sigrok.org/gitweb/?p=libsigrokdecode.git;a=commitdiff_plain;h=b88e336b86493ee3d893f563d1d847d901f8ce07 Fix double free --- 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;