mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-24 20:39:56 +08:00
Allow nullptr as clMemFreeINTEL argument
Change-Id: I2746fa21a2971c0e9c2abb003c61a3b2dbef623c Related-To: NEO-3521
This commit is contained in:
@@ -3453,7 +3453,7 @@ cl_int clMemFreeINTEL(
|
||||
return retVal;
|
||||
}
|
||||
|
||||
if (!neoContext->getSVMAllocsManager()->freeSVMAlloc(const_cast<void *>(ptr))) {
|
||||
if (ptr && !neoContext->getSVMAllocsManager()->freeSVMAlloc(const_cast<void *>(ptr))) {
|
||||
return CL_INVALID_VALUE;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user