stos: ob: Reclaim directory object on failure
Signed-off-by: Chloe M. <chloe@mensia.org>
This commit is contained in:
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user