diff options
author | Max Kellermann <max@duempel.org> | 2013-01-03 22:53:53 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-01-03 22:53:53 +0100 |
commit | 6837e5a6a09bfc499e09f7e5259f84a111bca8f6 (patch) | |
tree | 594a35bb656e4b38a5550a50d9656d012aa6d63d /src/CommandLine.cxx | |
parent | 59400d38a99ac8ffbfd7d89e021ed2f56ffbfd23 (diff) | |
parent | 9761abf3b5726cf3870ce4cb36e47c86ac8cee86 (diff) |
Merge branch 'v0.17.x'
Diffstat (limited to 'src/CommandLine.cxx')
-rw-r--r-- | src/CommandLine.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/CommandLine.cxx b/src/CommandLine.cxx index a784c824..a588ad5b 100644 --- a/src/CommandLine.cxx +++ b/src/CommandLine.cxx @@ -217,12 +217,12 @@ parse_cmdline(int argc, char **argv, struct options *options, if(g_file_test(system_path, G_FILE_TEST_IS_REGULAR)) { ret = config_read_file(system_path,error_r); + g_free(system_path); break; - } - ++i;; + } else + g_free(system_path); + ++i; } - g_free(system_path); - g_free(&system_config_dirs); } #else /* G_OS_WIN32 */ char *path2; |