]> sigrok.org Git - libsigrokdecode.git/commitdiff
Fix double free
authorBert Vermeulen <redacted>
Thu, 23 May 2013 09:24:25 +0000 (11:24 +0200)
committerBert Vermeulen <redacted>
Thu, 23 May 2013 09:24:25 +0000 (11:24 +0200)
controller.c

index 2f766651864c2a34f8691797a2beb15b01da0246..7987ea172b8d2270d9fc221246b57e84ab71f0fc 100644 (file)
@@ -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;