Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mosquitto_will_set_v5 not keep a copy of the properties #3095

Open
tph85666031 opened this issue Aug 6, 2024 · 1 comment
Open

mosquitto_will_set_v5 not keep a copy of the properties #3095

tph85666031 opened this issue Aug 6, 2024 · 1 comment

Comments

@tph85666031
Copy link

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
Copy link

ckrey commented Oct 9, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants