Skip to content

Comments

plugin_proxy: fixed memory leak#10179

Merged
edsiper merged 1 commit intomasterfrom
leonardo-master-plugin-proxy-leak-fix
Apr 7, 2025
Merged

plugin_proxy: fixed memory leak#10179
edsiper merged 1 commit intomasterfrom
leonardo-master-plugin-proxy-leak-fix

Conversation

@leonardo-albertovich
Copy link
Contributor

This PR fixes a memory leak in the plugin proxy, the regular plugin destruction process counts on the name (and description) being constants, however, the plugin proxy makes copies of them when creating both plugin spec instances.

ToDo: I don't really understand why does the plugin proxy create two instances of the flb_output_plugin / flb_input_plugin structure so I need to check with the code owner to get a better understanding of the reasoning behind it.

Signed-off-by: Leonardo Alminana <leonardo.alminana@chronosphere.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants