diff options
author | Junio C Hamano <gitster@pobox.com> | 2020-12-17 15:06:40 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-12-17 15:06:40 -0800 |
commit | 21127fa9829da1f7b805e44517970194490567d0 (patch) | |
tree | 88eaf57a33c0e0f73bacb984898a007698ca4ff9 /upload-pack.c | |
parent | 9feed4e2a66aa0d0b0ca4371d0de1b478f62ae52 (diff) | |
parent | 8d133f500a5390a089988141cdec8154a732764d (diff) | |
download | git-21127fa9829da1f7b805e44517970194490567d0.tar.gz |
Merge branch 'tb/partial-clone-filters-fix'
Fix potential server side resource deallocation issues when
responding to a partial clone request.
* tb/partial-clone-filters-fix:
upload-pack.c: don't free allowed_filters util pointers
builtin/clone.c: don't ignore transport_fetch_refs() errors
Diffstat (limited to 'upload-pack.c')
-rw-r--r-- | upload-pack.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/upload-pack.c b/upload-pack.c index 25e0ee1e0d..3b66bf92ba 100644 --- a/upload-pack.c +++ b/upload-pack.c @@ -156,7 +156,7 @@ static void upload_pack_data_clear(struct upload_pack_data *data) string_list_clear(&data->deepen_not, 0); object_array_clear(&data->extra_edge_obj); list_objects_filter_release(&data->filter_options); - string_list_clear(&data->allowed_filters, 1); + string_list_clear(&data->allowed_filters, 0); free((char *)data->pack_objects_hook); } |