aboutsummaryrefslogtreecommitdiffstats
path: root/refs/files-backend.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2023-05-05 14:19:17 -0700
committerJunio C Hamano <gitster@pobox.com>2023-05-05 14:24:09 -0700
commit83973981eb475ce90f829f8a5bd6ea99cd3bbd8e (patch)
tree14075bd5776ca46ea026647867272be0618d62ce /refs/files-backend.c
parentdiff: refactor common tail part of dirstat computation (diff)
downloadgit-83973981eb475ce90f829f8a5bd6ea99cd3bbd8e.tar.gz
git-83973981eb475ce90f829f8a5bd6ea99cd3bbd8e.zip
diff: plug leaks in dirstat
The array of dirstat_file contained in the dirstat_dir structure is not freed after the processing ends. Unfortunately, the member that points at the array, .files, is incremented as the gather_dirstat() function recursively walks it, and this needs to be plugged by remembering the beginning of the array before gather_dirstat() mucks with it and freeing it after we are done. We can mark t4047 as leak-free. t4000, which is marked as leak-free, now can exercise dirstat in it, which will happen next. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'refs/files-backend.c')
0 files changed, 0 insertions, 0 deletions