mirror of
https://github.com/eclipse-mosquitto/mosquitto.git
synced 2026-09-27 14:22:34 +08:00
Fix Coverity Scan 1486949 Resource leak
This commit is contained in:
@@ -101,6 +101,7 @@ int handle__pubackcomp(struct mosquitto *mosq, const char *type)
|
||||
&& reason_code != MQTT_RC_PAYLOAD_FORMAT_INVALID
|
||||
){
|
||||
|
||||
mosquitto_property_free_all(&properties);
|
||||
return MOSQ_ERR_PROTOCOL;
|
||||
}
|
||||
}else{
|
||||
@@ -108,6 +109,7 @@ int handle__pubackcomp(struct mosquitto *mosq, const char *type)
|
||||
&& reason_code != MQTT_RC_PACKET_ID_NOT_FOUND
|
||||
){
|
||||
|
||||
mosquitto_property_free_all(&properties);
|
||||
return MOSQ_ERR_PROTOCOL;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user