Merge pull request #12299 from akallabeth/test-fix

[core,test] fix use after free
This commit is contained in:
akallabeth
2026-02-13 12:05:38 +01:00
committed by GitHub

View File

@@ -286,15 +286,14 @@ static bool checkFreeRDPResults(bool custom, const char* vendor, const char* pro
if (comb)
{
rc = strcmp(cmp, comb) == 0;
if (!rc)
(void)fprintf(stderr, "strcmp(%s, %s) compare reg failed\n", cmp, comb);
}
free(comb);
free(cmp);
if (!rc)
{
(void)fprintf(stderr, "strcmp(%s, %s) compare reg failed\n", cmp, comb);
return false;
}
}
{
char* comb = freerdp_getApplicatonDetailsCombined('/');