aboutsummaryrefslogtreecommitdiffstats
path: root/builtin/commit-graph.c
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2023-10-03 16:30:55 -0400
committerJunio C Hamano <gitster@pobox.com>2023-10-03 14:28:24 -0700
commit274bfa7f28fea96fafa114f2508ebef53735d7b6 (patch)
tree7c359b5b1136e13be92c005a1987a677032e194e /builtin/commit-graph.c
parentcommit-graph: free graph struct that was not added to chain (diff)
downloadgit-274bfa7f28fea96fafa114f2508ebef53735d7b6.tar.gz
git-274bfa7f28fea96fafa114f2508ebef53735d7b6.zip
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 <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/commit-graph.c')
0 files changed, 0 insertions, 0 deletions