mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-26 00:39:03 +00:00
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:
committed by
GitHub
parent
6b4d57d85c
commit
89cd9660be
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user