]> sigrok.org Git - libsigrok.git/commitdiff
output: Fix double free.
authorBert Vermeulen <redacted>
Mon, 18 Aug 2014 21:55:39 +0000 (23:55 +0200)
committerBert Vermeulen <redacted>
Mon, 18 Aug 2014 22:01:57 +0000 (00:01 +0200)
src/output/output.c

index 787d75c749b4c69f5bd35f4f2b658929bf003cab..b3dfad197d9190e9bc7265eb7674454bd09c9f62 100644 (file)
@@ -274,7 +274,6 @@ SR_API const struct sr_output *sr_output_new(const struct sr_output_module *o,
        }
 
        if (op->module->init && op->module->init(op, new_opts) != SR_OK) {
-               g_hash_table_destroy(new_opts);
                g_free(op);
                op = NULL;
        }