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.