Skip to content

Commit

Permalink
another test
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitriyMusatkin committed Nov 19, 2023
1 parent b450054 commit db19f07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/s3_buffer_pool.c
Original file line number Diff line number Diff line change
Expand Up @@ -296,13 +296,13 @@ void aws_s3_buffer_pool_release_ticket(
}

if (ticket->ptr == NULL) {
aws_mem_release(buffer_pool->base_allocator, ticket);
/* Ticket was never used, make sure to clean up reserved count. */
if (ticket->size <= buffer_pool->primary_size_cutoff) {
buffer_pool->primary_reserved -= ticket->size;
} else {
buffer_pool->secondary_reserved -= ticket->size;
}
aws_mem_release(buffer_pool->base_allocator, ticket);
return;
}

Expand Down

0 comments on commit db19f07

Please sign in to comment.