mirror of
https://github.com/emqx/neuron.git
synced 2026-10-29 15:09:11 +08:00
Fix memory leak in function load_plugin_library
This commit is contained in:
@@ -690,10 +690,12 @@ void *load_plugin_library(char *plugin_lib_name, plugin_kind_e plugin_kind,
|
||||
case PLUGIN_KIND_CUSTOM:
|
||||
result =
|
||||
load_dyn_plugin_library(path, plugin_lib_name, p_plugin_module);
|
||||
free(path);
|
||||
break;
|
||||
}
|
||||
|
||||
if (path != NULL) {
|
||||
free(path);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user