eclipse-mosquitto/mosquitto

mosquitto_will_set_v5 not keep a copy of the properties

Closed this issue · 3 comments

seems mosquitto_will_set_v5 not keep a copy of the properties, so the caller can not free the properties after calling this API.
this behavior is different from mosquitto_publish_v5.

ckrey commented

Yes, correct. But this is exactly as described in the API (see below). You shall not free the will properties except when the mosquitto_will_set_v5 fails:

Bildschirmfoto 2024-10-09 um 16 10 23
ckrey commented

@tph85666031 does this answer your question? Can you close the issue?

thanks