stos: ob: Reclaim directory object on failure

Signed-off-by: Chloe M. <chloe@mensia.org>
This commit is contained in:
Chloe M.
2026-06-25 14:25:31 -05:00
parent 898990c91a
commit ceddcdba03
+1 -1
View File
@@ -40,8 +40,8 @@ ObCreateDirectory(const CHAR *Name, ST_OBJECT **Result)
OBJECT_POOL_TAG
);
/* FIXME: Free DirecObj */
if (Direc == NULL) {
ObReclaimObject(DirecObj);
return STATUS_NO_MEMORY;
}