If clCreateContext succeeded but clCreateCommandQueue failed, the context handle was returned without being released, leaking the OpenCL context and all associated GPU resources.
If clCreateContext succeeded but clCreateCommandQueue failed, the context handle was returned without being released, leaking the OpenCL context and all associated GPU resources.