Commit 9018f12d authored by Guillaume PELLEGRINO's avatar Guillaume PELLEGRINO
Browse files

Fix memory leak in mosquitto_tls_opts_set()



When calling mosquitto_tls_opts_set() multiple time in a row
on the same mosquitto context (Example: trying to reconnect
to mqtt broker), some of the tls options are not free, resulting in a memory leak.

The TLS options (tls_version, tls_ciphers) must be free before being set.

Signed-off-by: default avatarGuillaume PELLEGRINO <guillaume.pellegrino@yahoo.com>
parent 7ff2198c
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment