aboutsummaryrefslogtreecommitdiff
path: root/src/CommandLine.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-01-03 22:53:53 +0100
committerMax Kellermann <max@duempel.org>2013-01-03 22:53:53 +0100
commit6837e5a6a09bfc499e09f7e5259f84a111bca8f6 (patch)
tree594a35bb656e4b38a5550a50d9656d012aa6d63d /src/CommandLine.cxx
parent59400d38a99ac8ffbfd7d89e021ed2f56ffbfd23 (diff)
parent9761abf3b5726cf3870ce4cb36e47c86ac8cee86 (diff)
Merge branch 'v0.17.x'
Diffstat (limited to 'src/CommandLine.cxx')
-rw-r--r--src/CommandLine.cxx8
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;