output: Fix double free.
This commit is contained in:
parent
499c85dce5
commit
9fc318d9ef
|
@ -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) {
|
if (op->module->init && op->module->init(op, new_opts) != SR_OK) {
|
||||||
g_hash_table_destroy(new_opts);
|
|
||||||
g_free(op);
|
g_free(op);
|
||||||
op = NULL;
|
op = NULL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue