Skip to content

Commit

Permalink
[OpenCL] Fix memory leak by avoiding duplicate calls in `urMemBufferC…
Browse files Browse the repository at this point in the history
…reate`
  • Loading branch information
callumfare committed Nov 10, 2023
1 parent 2f44433 commit 2ed872d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/adapters/opencl/memory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urMemBufferCreate(
*phBuffer = reinterpret_cast<ur_mem_handle_t>(FuncPtr(
CLContext, PropertiesIntel.data(), static_cast<cl_mem_flags>(flags),
size, pProperties->pHost, cl_adapter::cast<cl_int *>(&RetErr)));
CL_RETURN_ON_FAILURE(RetErr);
return mapCLErrorToUR(RetErr);
}
}

Expand Down

0 comments on commit 2ed872d

Please sign in to comment.