Fixed more meory leaks.

This commit is contained in:
Martin Preuss
2023-10-06 00:17:15 +02:00
parent 8613fbdad7
commit ab6480ebca
5 changed files with 14 additions and 16 deletions

View File

@@ -55,6 +55,11 @@ void AqHomeMqtt_Fini(AQHOME_MQTT *aqh)
aqh->brokerEndpoint=NULL;
aqh->mqttEndpoint=NULL;
AQHMQTT_Device_List_free(aqh->availableDeviceList);
aqh->availableDeviceList=NULL;
AQHMQTT_Device_List_free(aqh->registeredDeviceList);
aqh->registeredDeviceList=NULL;
if (aqh->pidFile)
remove(aqh->pidFile);
}