config_parse: no need to check if current_section is non-null

Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
This commit is contained in:
Carlos Martín Nieto 2011-03-30 16:11:55 +02:00
parent 923fe4557f
commit 0bbaf9aaef

View File

@ -666,8 +666,7 @@ static int config_parse(git_config *cfg_file)
break;
case '[': /* section header, new section begins */
if (current_section)
free(current_section);
free(current_section);
error = parse_section_header(cfg_file, &current_section, line);
break;