From: Bert Vermeulen Date: Mon, 18 Aug 2014 21:55:39 +0000 (+0200) Subject: output: Fix double free. X-Git-Tag: libsigrok-0.4.0~1137 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=9fc318d9ef1b3f2438e185d5a466dca03bcbcbb4;p=libsigrok.git output: Fix double free. --- diff --git a/src/output/output.c b/src/output/output.c index 787d75c7..b3dfad19 100644 --- a/src/output/output.c +++ b/src/output/output.c @@ -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; }