зеркало из https://github.com/microsoft/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 <madcoder@debian.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Родитель
6d69b6f6ac
Коммит
690b61f5f1
|
@ -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:
|
||||
|
|
Загрузка…
Ссылка в новой задаче