зеркало из https://github.com/microsoft/git.git
[PATCH] fetch.c: Plug memory leak in process_tree()
When freeing a tree entry, must free its name too. Signed-off-by: Sergey Vlasov <vsu@altlinux.ru> Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
Родитель
a95cb6fb6b
Коммит
d35bbe0b2e
1
fetch.c
1
fetch.c
|
@ -48,6 +48,7 @@ static int process_tree(struct tree *tree)
|
|||
struct tree_entry_list *next = entry->next;
|
||||
if (process(entry->item.any))
|
||||
return -1;
|
||||
free(entry->name);
|
||||
free(entry);
|
||||
entry = next;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче