Fixed memory leaks.

This commit is contained in:
Martin Preuss
2023-08-10 13:27:51 +02:00
parent f716ebd338
commit a2c79aa6db
2 changed files with 2 additions and 0 deletions

View File

@@ -307,6 +307,7 @@ AQH_SESSION *_generateSessionForUser(AQH_SERVICE *sv, AQH_USER *u)
session=AQH_Session_new();
AQH_Session_SetUid(session, GWEN_Buffer_GetStart(buf));
GWEN_Buffer_free(buf);
ts=GWEN_Timestamp_NowInLocalTime();
AQH_Session_SetTimestampCreation(session, ts);

View File

@@ -76,6 +76,7 @@ int AQH_Storage_WriteStateFile(const AQH_STORAGE *sto, const char *sFilename)
GWEN_XMLNode_free(rootNode);
return rv;
}
GWEN_Buffer_free(nbuf);
GWEN_XMLNode_free(rootNode);
return 0;
}