You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a user sets the tls engine using mosquitto_opts_set(mosq, MOSQ_OPT_TLS_ENGINE, engine), Mosquitto copies the engine name and stores it in mosq->tls_engine.
However, when calling mosquitto_destroy, the memory allocated for mosq->tls_engine is not freed.
Suggestions
To address this issue, please ensure that you free mosq->tls_engine in the mosquitto_destroy function.
Issue Description
Analysis
When a user sets the
tls engine
usingmosquitto_opts_set(mosq, MOSQ_OPT_TLS_ENGINE, engine)
, Mosquitto copies the engine name and stores it inmosq->tls_engine
.However, when calling
mosquitto_destroy
, the memory allocated formosq->tls_engine
is not freed.Suggestions
To address this issue, please ensure that you free
mosq->tls_engine
in themosquitto_destroy
function.The text was updated successfully, but these errors were encountered: