-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
out_stackdriver: fixed a memory leak (CID 508244) #9299
Conversation
Signed-off-by: Leonardo Alminana <leonardo.alminana@chronosphere.io>
@igorpeshansky I performed a cursory inspection to validate (and expand) the findings and patched the leaks I could confirm, however I'm not familiar with the stackdriver plugin and would greatly appreciate if someone from the team could verify this PR. Additionally, It seems that |
Thanks for fixing this. These cleanups were missed when I reviewed the PRs by external contributors, I should have caught them.
They are allocated here (not guarded by any condition): fluent-bit/plugins/out_stackdriver/stackdriver.c Lines 2328 to 2331 in d873502
Then cleaned up here (also not guarded by any conditions): fluent-bit/plugins/out_stackdriver/stackdriver.c Lines 2461 to 2462 in d873502
|
I meant they would be leaked if this code path was taken. |
I didn't notice that, yeah you're right that's a leak. |
Signed-off-by: Leonardo Alminana <leonardo.alminana@chronosphere.io>
No description provided.