fix "if (p) free(p)" constructs

This commit is contained in:
Denis Vlasenko
2007-09-28 22:07:23 +00:00
parent e918e155ed
commit 6081868ee3
3 changed files with 6 additions and 11 deletions

View File

@@ -157,7 +157,7 @@ static void sed_free_and_close_stuff(void)
sed_cmd = sed_cmd_next;
}
if (G.hold_space) free(G.hold_space);
free(G.hold_space);
while (G.current_input_file < G.input_file_count)
fclose(G.input_file_list[G.current_input_file++]);