Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Issue 5589][pulsar-function-go] Fix a memory leak of pulsar-function…
…-go library (apache#5592) StrEntry variable should be cleared after finish addLogTopicHandler() function regardless the log messages are appended to logger or not. If it is not cleared, it causes memory leak because StrEntry has grown indefinitely. Moreover, if the function set --log-topic, then the topic could get accumulated huge messages that cause ProducerQueueIsFull error.
- Loading branch information