@@ -1067,16 +1067,16 @@ int s_slow_stream_get_length(struct aws_input_stream *stream, int64_t *out_lengt
10671067 * out_length = sender -> cursor .len ;
10681068 return AWS_OP_SUCCESS ;
10691069}
1070- void s_slow_stream_clean_up (struct aws_input_stream * stream ) {
1071- ( void ) stream ;
1070+ void s_slow_stream_destroy (struct aws_input_stream * stream ) {
1071+ aws_mem_release ( stream -> allocator , stream ) ;
10721072}
10731073
10741074static struct aws_input_stream_vtable s_slow_stream_vtable = {
10751075 .seek = NULL ,
10761076 .read = s_slow_stream_read ,
10771077 .get_status = s_slow_stream_get_status ,
10781078 .get_length = s_slow_stream_get_length ,
1079- .clean_up = s_slow_stream_clean_up ,
1079+ .destroy = s_slow_stream_destroy ,
10801080};
10811081
10821082/* It should be fine to receive a response before the request has finished sending */
@@ -1475,16 +1475,16 @@ static int s_error_from_outgoing_body_get_status(struct aws_input_stream *body,
14751475 return AWS_OP_SUCCESS ;
14761476}
14771477
1478- static void s_error_from_outgoing_body_clean_up (struct aws_input_stream * stream ) {
1479- ( void ) stream ;
1478+ static void s_error_from_outgoing_body_destroy (struct aws_input_stream * stream ) {
1479+ aws_mem_release ( stream -> allocator , stream ) ;
14801480}
14811481
14821482static struct aws_input_stream_vtable s_error_from_outgoing_body_vtable = {
14831483 .seek = NULL ,
14841484 .read = s_error_from_outgoing_body_read ,
14851485 .get_status = s_error_from_outgoing_body_get_status ,
14861486 .get_length = NULL ,
1487- .clean_up = s_error_from_outgoing_body_clean_up ,
1487+ .destroy = s_error_from_outgoing_body_destroy ,
14881488};
14891489
14901490static int s_error_from_incoming_headers (
0 commit comments