Fixed memory leaks.
This commit is contained in:
@@ -307,6 +307,7 @@ AQH_SESSION *_generateSessionForUser(AQH_SERVICE *sv, AQH_USER *u)
|
|||||||
|
|
||||||
session=AQH_Session_new();
|
session=AQH_Session_new();
|
||||||
AQH_Session_SetUid(session, GWEN_Buffer_GetStart(buf));
|
AQH_Session_SetUid(session, GWEN_Buffer_GetStart(buf));
|
||||||
|
GWEN_Buffer_free(buf);
|
||||||
|
|
||||||
ts=GWEN_Timestamp_NowInLocalTime();
|
ts=GWEN_Timestamp_NowInLocalTime();
|
||||||
AQH_Session_SetTimestampCreation(session, ts);
|
AQH_Session_SetTimestampCreation(session, ts);
|
||||||
|
|||||||
@@ -76,6 +76,7 @@ int AQH_Storage_WriteStateFile(const AQH_STORAGE *sto, const char *sFilename)
|
|||||||
GWEN_XMLNode_free(rootNode);
|
GWEN_XMLNode_free(rootNode);
|
||||||
return rv;
|
return rv;
|
||||||
}
|
}
|
||||||
|
GWEN_Buffer_free(nbuf);
|
||||||
GWEN_XMLNode_free(rootNode);
|
GWEN_XMLNode_free(rootNode);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user