[Issue 5589][pulsar-function-go] Fix a memory leak of pulsar-function-go library (#5592)
[Issue 5589][pulsar-function-go] Fix a memory leak of pulsar-function-go library (#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.
merlimat/pulsar,merlimat/pulsar,massakam/pulsar,yahoo/pulsar,massakam/pulsar,yahoo/pulsar,massakam/pulsar,merlimat/pulsar,massakam/pulsar,merlimat/pulsar,yahoo/pulsar,yahoo/pulsar,merlimat/pulsar,yahoo/pulsar,yahoo/pulsar,massakam/pulsar,massakam/pulsar,merlimat/pulsar