diff options
author | Jeff King <peff@peff.net> | 2024-09-24 17:52:07 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2024-09-25 10:24:53 -0700 |
commit | 0c23f1a9e40038296e5479bedaf27d93f9fdba6a (patch) | |
tree | 23fb2a7e8839a058cf4af7ca4e920bee685e5a7b /commit.c | |
parent | 91aa67353971e994596e9cae77d6ec1d8feefa84 (diff) |
fetch-pack: free object filter before exiting
Our fetch_pack_args holds a filter_options struct that may be populated
with allocated strings by the by the "--filter" command-line option. We
must free it before exiting to avoid a leak when the program exits.
The usual fetch code paths that use transport.c don't have the same
leak, because we do the cleanup in disconnect_git().
Fixing this leak lets us mark t5500 as leak-free.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit.c')
0 files changed, 0 insertions, 0 deletions