Fix memory leak in config.c

Thanks @jollywho
This commit is contained in:
Drew DeVault 2016-01-21 11:18:13 -05:00
parent ac740271a5
commit d969a1dec0
1 changed files with 1 additions and 0 deletions

View File

@ -285,6 +285,7 @@ bool read_config(FILE *file, bool is_active) {
line_number++;
line = strip_whitespace(line);
if (line[0] == '#') {
free(line);
continue;
}
struct cmd_results *res = config_command(line, block);