aqhome: fixed memory leaks.
This commit is contained in:
@@ -84,6 +84,8 @@ void _freeData(void *bp, void *p)
|
||||
AQH_ENDPOINT_MQTTC *xep;
|
||||
|
||||
xep=(AQH_ENDPOINT_MQTTC*) p;
|
||||
free(xep->clientId);
|
||||
free(xep->topicPrefix);
|
||||
GWEN_FREE_OBJECT(xep);
|
||||
}
|
||||
|
||||
|
||||
@@ -89,6 +89,7 @@ void _freeData(void *bp, void *p)
|
||||
AQH_MSG_ENDPOINT_TTY *xep;
|
||||
|
||||
xep=(AQH_MSG_ENDPOINT_TTY*) p;
|
||||
free(xep->deviceName);
|
||||
GWEN_FREE_OBJECT(xep);
|
||||
}
|
||||
|
||||
|
||||
@@ -126,8 +126,8 @@ void AQH_MsgManager_SetDbFilename(GWEN_MSG_ENDPOINT_MGR *emgr, const char *s)
|
||||
rv=GWEN_DB_ReadFile(dbNodeDb, xmgr->dbFilename, GWEN_DB_FLAGS_DEFAULT);
|
||||
if (rv==0) {
|
||||
AQH_NodeDb_fromDb(xmgr->nodeDb, dbNodeDb);
|
||||
GWEN_DB_Group_free(dbNodeDb);
|
||||
}
|
||||
GWEN_DB_Group_free(dbNodeDb);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -122,7 +122,7 @@
|
||||
<default>NULL</default>
|
||||
<preset>NULL</preset>
|
||||
<access>public</access>
|
||||
<flags></flags>
|
||||
<flags>own</flags>
|
||||
</member>
|
||||
|
||||
</members>
|
||||
|
||||
Reference in New Issue
Block a user