Fix double free on exit in mosquitto_pub.

Closes #1280. Thanks to Lucky Saini.
pull/1600/head
Roger A. Light 6 years ago
parent 79bbc5d610
commit a4243ee919

@ -43,6 +43,9 @@ Clients:
- Fix MQTT v5 clients not being able to specify a password without a username. - Fix MQTT v5 clients not being able to specify a password without a username.
Closes #1274. Closes #1274.
Clients:
- Fix double free on exit in mosquitto_pub. Closes #1280.
Documentation: Documentation:
- Remove references to Python binding and C++ wrapper in libmosquitto man - Remove references to Python binding and C++ wrapper in libmosquitto man
page. Closes #1266. page. Closes #1266.

@ -508,6 +508,7 @@ int main(int argc, char *argv[])
if(cfg.message && cfg.pub_mode == MSGMODE_FILE){ if(cfg.message && cfg.pub_mode == MSGMODE_FILE){
free(cfg.message); free(cfg.message);
cfg.message = NULL;
} }
mosquitto_destroy(mosq); mosquitto_destroy(mosq);
mosquitto_lib_cleanup(); mosquitto_lib_cleanup();

Loading…
Cancel
Save