Skip to content

Fix #1978 - Preserve plugin name when unloading net plugin#1979

Open
theely wants to merge 3 commits intoNVIDIA:masterfrom
theely:fix-1978-net-plugin-reload
Open

Fix #1978 - Preserve plugin name when unloading net plugin#1979
theely wants to merge 3 commits intoNVIDIA:masterfrom
theely:fix-1978-net-plugin-reload

Conversation

@theely
Copy link

@theely theely commented Jan 14, 2026

When unloading a net plugin, the plugin name was being cleared due to the use of memset on the entire pluginLib structure. This caused issues when attempting to reload the plugin later, as the name was no longer available.

To fix this, we now save the plugin name before the memset operation and restore it afterward. This ensures that the plugin name remains intact even after unloading, allowing for successful reloading of the plugin.

When unloading a net plugin, the plugin name was being cleared due to
the use of memset on the entire pluginLib structure. This caused issues
when attempting to reload the plugin later, as the name was no longer
available.

To fix this, we now save the plugin name before the memset operation
and restore it afterward. This ensures that the plugin name remains intact
even after unloading, allowing for successful reloading of the plugin.
When unloading a net plugin, the plugin name was being cleared due to
the use of memset on the entire pluginLib structure. This caused issues
when attempting to reload the plugin later, as the name was no longer
available.

To fix this, we now save the plugin name before the memset operation
and restore it afterward. This ensures that the plugin name remains intact
even after unloading, allowing for successful reloading of the plugin.

Signed-off-by: Elia Palme <elia.palme@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant