computeinfo: fix memory leak (#2002)

Even on the common code path (i.e., no error paths taken),
test_computeinfo failed to release its allocated memory, preventing a
clean run with LeakSanitizer.

Signed-off-by: Sven van Haastregt <sven.vanhaastregt@arm.com>
This commit is contained in:
Sven van Haastregt
2024-07-08 13:34:39 +02:00
committed by GitHub
parent 6b4d57d85c
commit 89cd9660be

View File

@@ -1452,5 +1452,9 @@ int main(int argc, const char** argv)
}
}
return runTestHarness(argCount, argList, test_num, test_list, true, 0);
int error = runTestHarness(argCount, argList, test_num, test_list, true, 0);
free(argList);
return error;
}