Fix bridge memory leak on exit.

pull/1811/head
Roger A. Light 5 years ago
parent 628441d33b
commit 60254c9ecb

@ -135,6 +135,16 @@ void context__cleanup(struct mosquitto_db *db, struct mosquitto *context, bool d
mosquitto__free(context->bridge->remote_password);
}
context->bridge->remote_password = NULL;
#ifdef WITH_TLS
if(context->ssl){
SSL_free(context->ssl);
context->ssl = NULL;
}
if(context->ssl_ctx){
SSL_CTX_free(context->ssl_ctx);
context->ssl_ctx = NULL;
}
#endif
}
#endif

Loading…
Cancel
Save