diff options
author | Matthew DeVore <matvore@google.com> | 2019-05-31 11:46:06 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-05-31 12:36:07 -0700 |
commit | 7140600e2e78f202594ebca09e3176b6fcac1625 (patch) | |
tree | 1c50199217936334b1dbc27af1cfffb424e1015e /unix-socket.h | |
parent | list-objects: support for skipping tree traversal (diff) | |
download | tgif-7140600e2e78f202594ebca09e3176b6fcac1625.tar.xz |
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 'unix-socket.h')
0 files changed, 0 insertions, 0 deletions