mirror of
https://github.com/eclipse-mosquitto/mosquitto.git
synced 2026-09-21 23:47:52 +08:00
Fix some plugin memory not being freed on exit.
This commit is contained in:
@@ -321,9 +321,5 @@ int mosquitto_callback_unregister(
|
||||
break;
|
||||
}
|
||||
|
||||
if(check_callback_exists(*cb_base, cb_func)){
|
||||
return MOSQ_ERR_ALREADY_EXISTS;
|
||||
}
|
||||
|
||||
return remove_callback(*cb_base, cb_func);
|
||||
}
|
||||
|
||||
+3
-1
@@ -546,7 +546,9 @@ static int security__cleanup_single(struct mosquitto__security_options *opts, bo
|
||||
int rc;
|
||||
|
||||
for(i=0; i<opts->auth_plugin_config_count; i++){
|
||||
if(opts->auth_plugin_configs[i].plugin.version == 4){
|
||||
if(opts->auth_plugin_configs[i].plugin.version == 5){
|
||||
rc = MOSQ_ERR_SUCCESS;
|
||||
}else if(opts->auth_plugin_configs[i].plugin.version == 4){
|
||||
rc = opts->auth_plugin_configs[i].plugin.security_cleanup_v4(
|
||||
opts->auth_plugin_configs[i].plugin.user_data,
|
||||
opts->auth_plugin_configs[i].options,
|
||||
|
||||
Reference in New Issue
Block a user