got: use intermediate pointers to plug leak on realloc
commit84073f62fdfec793493251a7adbb339cd265a45b
authorMark Jamsek <mark@jamsek.dev>
Tue, 7 Feb 2023 13:13:38 +0000 (7 13:13 +0000)
committerThomas Adam <thomas@xteddy.org>
Tue, 7 Feb 2023 20:14:55 +0000 (7 20:14 +0000)
tree20a5922daa9cce5a479495a2ac0c11bbbfa8190d
parenta6d87ea2fa484657855fbde3ed06fe6428d42a81
got: use intermediate pointers to plug leak on realloc

And save worktree_branch_len for reuse.

ok stsp@ and op@
lib/privsep.c
libexec/got-fetch-pack/got-fetch-pack.c