summaryrefslogtreecommitdiff
path: root/builtin/commit.c
diff options
context:
space:
mode:
authorMatthew DeVore <matvore@google.com>2019-05-31 11:46:06 -0700
committerJunio C Hamano <gitster@pobox.com>2019-05-31 12:36:07 -0700
commit7140600e2e78f202594ebca09e3176b6fcac1625 (patch)
tree1c50199217936334b1dbc27af1cfffb424e1015e /builtin/commit.c
parent8b10a206f090e01ce1ac4d9a10ec769e2409e2b0 (diff)
list-objects-filter: correct usage of ALLOC_GROW
In the sparse filter data, array_frame array is used in a way such that nr is the index of the last element. Fix this so that nr is actually the number of elements in the array. The filter_sparse_free function also has an unaddressed TODO to free the memory associated with the sparse filter data. Address that TODO and fix the memory leak. Signed-off-by: Matthew DeVore <matvore@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/commit.c')
0 files changed, 0 insertions, 0 deletions