compositor: Don't free config_file before we done using it
This commit is contained in:
parent
762b166c35
commit
142d546c14
@ -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…
Reference in New Issue
Block a user