aboutsummaryrefslogtreecommitdiff
path: root/src/CommandLine.cxx
diff options
context:
space:
mode:
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;