Fix memory leak when setting v5 properties in mosquitto_connect_v5()

pull/1600/head
Roger A. Light 6 years ago
parent 3d25b20eba
commit c27a878e53

@ -23,6 +23,7 @@ Client library:
- on_connect callback is now called with the correct v5 reason code if a v5
client connects to a v3.x broker and is sent a CONNACK with the
"unacceptable protocol version" connack reason code.
- Fix memory leak when setting v5 properties in mosquitto_connect_v5().
Clients:
- mosquitto_pub: fix error codes not being returned when mosquitto_pub exits.

@ -168,6 +168,7 @@ int send__connect(struct mosquitto *mosq, uint16_t keepalive, bool clean_session
property__write_all(packet, properties, false);
property__write_all(packet, local_props, false);
}
mosquitto_property_free_all(&local_props);
/* Payload */
if(clientid){

Loading…
Cancel
Save