From: Pierre Habouzit Date: Thu, 27 Sep 2007 10:51:18 +0000 (+0200) Subject: double free in builtin-update-index.c X-Git-Tag: v1.5.4-rc0~387^2~3 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=690b61f5f13db05aa4ad0efc422bd01aef3c1367;p=git.git double free in builtin-update-index.c path_name is either ptr that should not be freed, or a pointer to a strbuf buffer that is deallocated when exiting the loop. Don't do that ! Signed-off-by: Pierre Habouzit Signed-off-by: Junio C Hamano --- diff --git a/builtin-update-index.c b/builtin-update-index.c index c76879ed7..e1a938d89 100644 --- a/builtin-update-index.c +++ b/builtin-update-index.c @@ -377,8 +377,6 @@ static void read_index_info(int line_termination) die("git-update-index: unable to update %s", path_name); } - if (path_name != ptr) - free(path_name); continue; bad_line: