diff --git a/orbis-kernel/src/sys/sys_uipc_shm.cpp b/orbis-kernel/src/sys/sys_uipc_shm.cpp index 1c44b3e6c..f97143053 100644 --- a/orbis-kernel/src/sys/sys_uipc_shm.cpp +++ b/orbis-kernel/src/sys/sys_uipc_shm.cpp @@ -30,13 +30,10 @@ orbis::SysResult orbis::sys_shm_unlink(Thread *thread, ptr path) { } if (auto shm_unlink = thread->tproc->ops->shm_unlink) { - Ref file; auto result = shm_unlink(thread, path); if (result.isError()) { return result; } - - thread->retval[0] = thread->tproc->fileDescriptors.insert(file); return {}; }