[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:
Sergey Vlasov 2005-09-23 16:28:18 +04:00 коммит произвёл Junio C Hamano
Родитель a95cb6fb6b
Коммит d35bbe0b2e
1 изменённых файлов: 1 добавлений и 0 удалений

Просмотреть файл

@ -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;
}