(svn r26828) -Fix: memory leak when passing -c multiple times

This commit is contained in:
rubidium 2014-09-16 17:14:07 +00:00
parent 01dae23dc7
commit 2485b40cdd
1 changed files with 1 additions and 1 deletions

View File

@ -667,7 +667,7 @@ int openttd_main(int argc, char *argv[])
goto exit_noshutdown;
}
case 'G': scanner->generation_seed = atoi(mgo.opt); break;
case 'c': _config_file = stredup(mgo.opt); break;
case 'c': free(_config_file); _config_file = stredup(mgo.opt); break;
case 'x': scanner->save_config = false; break;
case 'h':
i = -2; // Force printing of help.