• S
    [Issue 5589][pulsar-function-go] Fix a memory leak of pulsar-function-go library (#5592) · 387e2907
    Sunkwan Kwon 提交于
    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.
    387e2907
instance.go 9.6 KB