diff options
| author | Patrick Steinhardt <ps@pks.im> | 2024-08-22 11:17:41 +0200 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2024-08-22 09:18:05 -0700 |
| commit | ca522341831ad223187fe67b80ad87ad6efe4497 (patch) | |
| tree | c886462059fd94d09b1f6e57ff045255572a44de /transport.c | |
| parent | fb24460e1d28d963eb0eac75d3342b492583d2c9 (diff) | |
| download | git-ca522341831ad223187fe67b80ad87ad6efe4497.tar.gz | |
transport: fix leaking OID arrays in git:// transport data
The transport data for the "git://" protocol contains two OID arrays
that we never free, creating a memory leak. Plug them.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'transport.c')
| -rw-r--r-- | transport.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/transport.c b/transport.c index 7c4af9f56f..f0672fdc50 100644 --- a/transport.c +++ b/transport.c @@ -946,6 +946,8 @@ static int disconnect_git(struct transport *transport) } list_objects_filter_release(&data->options.filter_options); + oid_array_clear(&data->extra_have); + oid_array_clear(&data->shallow); free(data); return 0; } |
