mirror of
https://github.com/git/git.git
synced 2026-01-11 13:23:12 +09:00
shallow: free local object_array allocations
The local object_array 'stack' in get_shallow_commits() function does not free its dynamic elements before the function returns. As a result elements remain allocated and their reference forgotten. Also note, that test 'fetching deepen beyond merged branch' added by 'shallow: handling fetch relative-deepen' patch fails without this correction in linux-leaks and linux-reftable-leaks test runs. Signed-off-by: Samo Pogačnik <samo_pogacnik@t-2.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
d529f3a197
commit
33e1bf8138
Loading…
x
Reference in New Issue
Block a user