Cleanup bridge ssl_ctx on exit.

This commit is contained in:
Roger A. Light 2020-09-17 12:45:57 +01:00
parent a57e41beff
commit 7ad1ec819c

View File

@ -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
}