Use xmalloc() and friends to catch allocation failures
authorDotan Barak <dotanba@gmail.com>
Tue, 9 Sep 2008 18:57:10 +0000 (21:57 +0300)
committerJunio C Hamano <gitster@pobox.com>
Tue, 9 Sep 2008 23:28:05 +0000 (16:28 -0700)
commite8eec71d6e79c176d34dc8fda8780ed4dee447a2
tree67faf2bc865ed17e29ab2ad042a526bc6383a7e3
parent4886b89f8fde57b76738c96761eecbfbd0b13112
Use xmalloc() and friends to catch allocation failures

Some places use the standard malloc/strdup without checking if the
allocation was successful; they should use xmalloc/xstrdup that
check the memory allocation result.

Signed-off-by: Dotan Barak <dotanba@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-http-fetch.c
git.c
http-push.c
http.c
remote.c