You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by "dao-jun (via GitHub)" <gi...@apache.org> on 2024/04/02 07:31:05 UTC
Re: [PR] [fix][client] client side memory leak when call ProducerBase.sendAsync(Message) [pulsar]
dao-jun commented on PR #22393:
URL: https://github.com/apache/pulsar/pull/22393#issuecomment-2031271855
Just a minor comment:
Will
```java
if (ReferenceCountUtil.refCnt(payload) > 0) {
ReferenceCountUtil.release(payload);
}
```
be better?
double release a ReferentCount Object will throw an exception, and `ReferenceCountUtil.safeRelease(...)` prints WARN log.
--
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.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org