compositor: Don't free config_file before we done using it

dev
Kristian Høgsberg 12 years ago
parent 762b166c35
commit 142d546c14
  1. 4
      src/compositor.c

@ -3431,8 +3431,6 @@ int main(int argc, char *argv[])
sigaction(SIGSEGV, &segv_action, NULL); sigaction(SIGSEGV, &segv_action, NULL);
segv_compositor = ec; segv_compositor = ec;
free(config_file);
ec->option_idle_time = idle_time; ec->option_idle_time = idle_time;
ec->idle_time = idle_time; ec->idle_time = idle_time;
@ -3443,6 +3441,8 @@ int main(int argc, char *argv[])
if (load_modules(ec, option_modules, &argc, argv, config_file) < 0) if (load_modules(ec, option_modules, &argc, argv, config_file) < 0)
goto out; goto out;
free(config_file);
for (i = 1; i < argc; i++) for (i = 1; i < argc; i++)
weston_log("fatal: unhandled option: %s\n", argv[i]); weston_log("fatal: unhandled option: %s\n", argv[i]);
if (argc > 1) { if (argc > 1) {

Loading…
Cancel
Save