]> git.ipfire.org Git - thirdparty/git.git/commit
xdiff: delete local variables and initialize/free xdfile_t directly
authorEzekiel Newren <ezekielnewren@gmail.com>
Fri, 26 Sep 2025 22:41:49 +0000 (22:41 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 26 Sep 2025 23:08:54 +0000 (16:08 -0700)
commitd1c028bdf75b9bcd380f85f74a34edcbaa060fee
tree3aff2641b55b1cf45e060298dfe451ac7b18be17
parent43d5f52ac4a3b9cb6c5717af30be42a363fedf20
xdiff: delete local variables and initialize/free xdfile_t directly

These local variables are essentially a hand-rolled additional
implementation of xdl_free_ctx() inlined into xdl_prepare_ctx(). Modify
the code to use the existing xdl_free_ctx() function so there aren't
two ways to free such variables.

Signed-off-by: Ezekiel Newren <ezekielnewren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
xdiff/xprepare.c