fixed memory leaks.
This commit is contained in:
@@ -130,6 +130,7 @@ int main(int argc, char **argv)
|
||||
|
||||
AQH_MqttLogServer_Fini(aqh);
|
||||
AQH_Object_free(aqh);
|
||||
AQH_EventLoop_free(eventLoop);
|
||||
|
||||
GWEN_Gui_SetGui(NULL);
|
||||
GWEN_Gui_free(gui);
|
||||
|
||||
@@ -156,8 +156,15 @@ void GWENHYWFAR_CB _freeData(GWEN_UNUSED void *bp, void *p)
|
||||
|
||||
AQH_Object_free(xo->mqttEndpoint);
|
||||
AQH_Object_free(xo->brokerEndpoint);
|
||||
|
||||
|
||||
AQHMQTT_Device_List_free(xo->availableDeviceList);
|
||||
AQHMQTT_Device_List_free(xo->registeredDeviceList);
|
||||
GWEN_DB_Group_free(xo->dbArgs);
|
||||
free(xo->deviceFile);
|
||||
free(xo->pidFile);
|
||||
free(xo->mqttAddress);
|
||||
free(xo->mqttClientId);
|
||||
free(xo->brokerAddress);
|
||||
free(xo->brokerClientId);
|
||||
|
||||
GWEN_FREE_OBJECT(xo);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user