Properties are now freed after the callback.

This commit is contained in:
Roger A. Light 2018-11-29 16:51:48 +00:00
parent 1b854e250e
commit 867fe80e0e

View File

@ -44,7 +44,6 @@ int handle__connack(struct mosquitto *mosq)
if(mosq->protocol == mosq_p_mqtt5){
rc = property__read_all(CMD_CONNACK, &mosq->in_packet, &properties);
if(rc) return rc;
mosquitto_property_free_all(&properties);
}
log__printf(mosq, MOSQ_LOG_DEBUG, "Client %s received CONNACK (%d)", mosq->id, reason_code);