[PATCH 0/2] repack: prevent geometry struct leak
- From
Taylor Blau <me@ttaylorr.com>
- Date
- Aug 9, 2023, 20:32 UTC
- Message-ID
- <cover.1691613149.git.me@ttaylorr.com>
- In-Reply-To
- <20230808211759.GA322409@coredump.intra.peff.net>
This short series combines a patch from Peff and a patch from me to prevent leaking the 'struct pack_geometry *' pointer from the repack code.
The first patch free()s the heap-allocated struct, and the second patch moves the variable to be allocated on the stack.
Jeff King (1): repack: free geometry struct
Taylor Blau (1): repack: move `pack_geometry` struct to the stack
builtin/repack.c | 66 +++++++++++++++++++++++------------------------- 1 file changed, 32 insertions(+), 34 deletions(-)
-- 2.42.0.rc0.27.g2e2a760381