From 690b61f5f13db05aa4ad0efc422bd01aef3c1367 Mon Sep 17 00:00:00 2001 From: Pierre Habouzit Date: Thu, 27 Sep 2007 12:51:18 +0200 Subject: [PATCH] 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 --- builtin-update-index.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/builtin-update-index.c b/builtin-update-index.c index c76879ed7f..e1a938d897 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: -- 2.11.4.GIT