Kernel: Use "new (nothrow)" for SharedInodeVMObject

This commit is contained in:
Andreas Kling 2021-07-11 21:56:26 +02:00
parent 425195e93f
commit 2dfdaafb23

View file

@ -23,7 +23,7 @@ RefPtr<SharedInodeVMObject> SharedInodeVMObject::try_create_with_inode(Inode& in
RefPtr<VMObject> SharedInodeVMObject::try_clone()
{
return adopt_ref_if_nonnull(new SharedInodeVMObject(*this));
return adopt_ref_if_nonnull(new (nothrow) SharedInodeVMObject(*this));
}
SharedInodeVMObject::SharedInodeVMObject(Inode& inode, size_t size)