nfs4: Use nothrow new when creating LockInfo

This commit is contained in:
Pawel Dziepak 2013-06-13 11:37:01 +02:00
parent 5691cd5607
commit d94b1808ec

View File

@ -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();