SWDEV-447384 - Handle double free case.
Change-Id: I7a1d45c2f7510180911507d56ec863982b161f6c
[ROCm/clr commit: 43e2bb6126]
This commit is contained in:
committed by
Jaydeepkumar Patel
parent
6733795fee
commit
2d8d4d5821
@@ -171,6 +171,8 @@ hipError_t hipFreeAsync(void* dev_ptr, hipStream_t stream) {
|
||||
// The current implementation has unconditional waits
|
||||
return ihipFree(dev_ptr);
|
||||
}
|
||||
} else {
|
||||
HIP_RETURN(hipErrorInvalidValue);
|
||||
}
|
||||
} else {
|
||||
if (!AMD_DIRECT_DISPATCH) {
|
||||
|
||||
Reference in New Issue
Block a user