Details
-
Bug
-
Status: Resolved
-
Normal
-
Resolution: Fixed
-
4.0.9, 4.1.1, 5.0-alpha1, 5.0
-
None
-
Correctness
-
Low
-
Low Hanging Fruit
-
User Report
-
All
-
None
-
Description
The counter is incorrectly decremented by the size of the unused portion of the provided buffer.
It should be decremented by the number of bytes actually returned to the pool (that may be different than "size"). The number should be calculated as a difference between original and resulting buffer capacity.