Skip to content

Commit

Permalink
tests: fix memory leaks in multidev cmdbuf test
Browse files Browse the repository at this point in the history
  • Loading branch information
jansol committed Mar 12, 2024
1 parent d09cb7c commit 8cc73d9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/runtime/test_command_buffer_multi_device.c
Expand Up @@ -358,6 +358,7 @@ main (int _argc, char **_argv)
{
CHECK_CL_ERROR (clReleaseCommandQueue (queues[i]));
}
free (queues);

CHECK_CL_ERROR (clReleaseMemObject (buffer_src1));
CHECK_CL_ERROR (clReleaseMemObject (buffer_src2));
Expand All @@ -374,6 +375,8 @@ main (int _argc, char **_argv)
CHECK_CL_ERROR (clReleaseProgram (program));
CHECK_CL_ERROR (clReleaseContext (context));

free (devices);

printf ("OK\n");
return EXIT_SUCCESS;
#else
Expand Down

0 comments on commit 8cc73d9

Please sign in to comment.