]> git.ipfire.org Git - thirdparty/git.git/commit
xdiff/xprepare: refactor abort cleanups
authorTay Ray Chuan <rctay89@gmail.com>
Thu, 7 Jul 2011 04:23:56 +0000 (12:23 +0800)
committerJunio C Hamano <gitster@pobox.com>
Thu, 7 Jul 2011 16:37:21 +0000 (09:37 -0700)
commit159607a8f1ad16c0a04e0f17d5f8a35299696bc6
tree3d086f72b77099b81f302273fe00e6f04d884fb2
parent452f4fa51e1fd1d0e3155fb4f4d8913298ac63a6
xdiff/xprepare: refactor abort cleanups

Group free()'s that are called when a malloc() fails in
xdl_prepare_ctx(), making for more readable code.

Also add a free() on ha, in case future git hackers add allocs after the
ha malloc.

Signed-off-by: Tay Ray Chuan <rctay89@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
xdiff/xprepare.c