Thread (1 message) 1 message, 1 author, 2024-08-21

Re: [PATCH 14/20] builtin/fetch-pack: fix leaking refs

From: Junio C Hamano <hidden>
Date: 2024-08-21 17:46:56

Patrick Steinhardt [off-list ref] writes:
We build several ref lists in git-fetch-pack(1), but never free them.
Fix those leaks.

Signed-off-by: Patrick Steinhardt <redacted>
---
 builtin/fetch-pack.c | 20 ++++++++++++--------
 1 file changed, 12 insertions(+), 8 deletions(-)
Quite straight-forward.  In addition to plugging leaks, the
resulting code is much easier to reason about by avoiding the reuse
of the variable.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help