nfs4: Use nothrow new when creating LockInfo
This commit is contained in:
parent
5691cd5607
commit
d94b1808ec
@ -749,7 +749,7 @@ Inode::AcquireLock(OpenFileCookie* cookie, const struct flock* lock,
|
||||
if (owner == NULL)
|
||||
return B_NO_MEMORY;
|
||||
|
||||
LockInfo* linfo = new LockInfo(owner);
|
||||
LockInfo* linfo = new(std::nothrow) LockInfo(owner);
|
||||
if (linfo == NULL)
|
||||
return B_NO_MEMORY;
|
||||
locker.Unlock();
|
||||
|
Loading…
x
Reference in New Issue
Block a user