commands/output/toggle: Use free_output_config

This commit is contained in:
Kenny Levinsen 2024-03-16 17:55:07 +01:00 committed by Simon Ser
parent 26a9a6b479
commit a4ef37752f

View file

@ -29,7 +29,7 @@ struct cmd_results *output_cmd_toggle(int argc, char **argv) {
config->handler_context.output_config->enabled = 1;
}
free(oc);
free_output_config(oc);
config->handler_context.leftovers.argc = argc;
config->handler_context.leftovers.argv = argv;
return NULL;