mirror of
https://github.com/eclipse-mosquitto/mosquitto.git
synced 2026-09-21 07:13:46 +08:00
Fix memory leak when setting v5 properties in mosquitto_connect_v5()
This commit is contained in:
@@ -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){
|
||||
|
||||
Reference in New Issue
Block a user