ltamber opened a new issue #8846: URL: https://github.com/apache/pulsar/issues/8846
**Describe the bug** Currently when the consumer invoke `receiveAsync()`, there will a callback push to `pendingReceives_ `, https://github.com/apache/pulsar/blob/master/pulsar-client-cpp/lib/ConsumerImpl.cc#L644, but if where has no more message in the topic, the callback in `pendingReceives_` will not pop anymore, and lead to memory leak. **To Reproduce** Steps to reproduce the behavior: 1. invoke `consumer.receiveAsync()` in a for loop, and don't produce any message to the same topic ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
