]> git.99rst.org Git - git.git/commit
commit-graph: free write-context entries before overwriting
authorJeff King <redacted>
Tue, 3 Oct 2023 20:30:55 +0000 (16:30 -0400)
committerJunio C Hamano <redacted>
Tue, 3 Oct 2023 21:28:24 +0000 (14:28 -0700)
commit274bfa7f28fea96fafa114f2508ebef53735d7b6
tree7c359b5b1136e13be92c005a1987a677032e194e
parent1d94abfe1eedb3f0a9de74ba59483ef8f10b352c
commit-graph: free write-context entries before overwriting

When writing a split graph file, we replace the final element of the
commit_graph_hash_after and commit_graph_filenames_after arrays. But
since these are allocated strings, we need to free them before
overwriting to avoid leaking the old string.

Signed-off-by: Jeff King <redacted>
Signed-off-by: Junio C Hamano <redacted>
commit-graph.c
git clone https://git.99rst.org/PROJECT