path.c: use xmalloc() in add_to_trie()
commit55d7d15847e84d531f712f9fd6a7117283b208a3
authorAndrey Okoshkin <a.okoshkin@samsung.com>
Tue, 24 Oct 2017 15:15:05 +0000 (24 18:15 +0300)
committerJunio C Hamano <gitster@pobox.com>
Wed, 25 Oct 2017 07:16:22 +0000 (25 16:16 +0900)
tree5cdd03f2c2cb1734f1efcb63b7d482fc05a2e0e6
parent42e6fde5c28150206956ea4be490d886c4ecbd68
path.c: use xmalloc() in add_to_trie()

Add usage of xmalloc() instead of malloc() in add_to_trie() as xmalloc wraps
and checks memory allocation result.

Signed-off-by: Andrey Okoshkin <a.okoshkin@samsung.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
path.c