diff --git a/src/context/memory.rs b/src/context/memory.rs index 8ac4c43089..7ab71143a4 100644 --- a/src/context/memory.rs +++ b/src/context/memory.rs @@ -2668,7 +2668,10 @@ fn correct_inner<'l>( new_frame } - Err(AddRefError::SharedToCow) => unreachable!(), + Err(AddRefError::SharedToCow) => { + log::error!("unexpected SharedToCow in shared page path"); + return Err(PfError::Oom); + } Err(AddRefError::RcOverflow) => return Err(PfError::Oom), } }