fixed memory leaks.

This commit is contained in:
Martin Preuss
2025-03-23 16:58:07 +01:00
parent ebce002614
commit 52eb92a00c
14 changed files with 292 additions and 7 deletions

View File

@@ -246,8 +246,12 @@ int _hasDateChanged(AQHREACT_UNIT *unit)
GWEN_DATE *today;
today=GWEN_Date_CurrentDate();
if (GWEN_Date_Compare(today, xunit->date)!=0)
if (GWEN_Date_Compare(today, xunit->date)!=0) {
GWEN_Date_free(today);
return 1;
}
GWEN_Date_free(today);
}
}