Cleanup bridge ssl_ctx on exit.
This commit is contained in:
parent
a57e41beff
commit
7ad1ec819c
@ -576,6 +576,11 @@ void bridge__cleanup(struct mosquitto_db *db, struct mosquitto *context)
|
||||
mosquitto__free(context->bridge->remote_password);
|
||||
}
|
||||
context->bridge->remote_password = NULL;
|
||||
#ifdef WITH_TLS
|
||||
if(context->ssl_ctx){
|
||||
SSL_CTX_free(context->ssl_ctx);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user