return SR_OK;
}
-static int cleanup(struct sr_output *o)
-{
- struct out_context *outc;
-
- outc = o->priv;
- g_free(outc->filename);
- g_free(outc);
- o->priv = NULL;
-
- return SR_OK;
-}
-
static struct sr_option options[] = {
ALL_ZERO
};
return options;
}
+static int cleanup(struct sr_output *o)
+{
+ struct out_context *outc;
+
+ outc = o->priv;
+ g_variant_unref(options[0].def);
+ g_free(outc->filename);
+ g_free(outc);
+ o->priv = NULL;
+
+ return SR_OK;
+}
+
SR_PRIV struct sr_output_module output_srzip = {
.id = "srzip",
.name = "srzip",