projects
/
yaffs2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
yaffs-direct: Fix object leak caused by defered free
[yaffs2.git]
/
direct
/
yaffsfs.c
diff --git
a/direct/yaffsfs.c
b/direct/yaffsfs.c
index 331590bfa4bff7db4d7f4f507579f5e109aed50f..6cffbc86ebc04705b59ae7b846022034a530e4f0 100644
(file)
--- a/
direct/yaffsfs.c
+++ b/
direct/yaffsfs.c
@@
-247,13
+247,11
@@
static void yaffsfs_ReleaseInode(struct yaffsfs_Inode *in)
struct yaffs_obj *obj;
obj = in->iObj;
struct yaffs_obj *obj;
obj = in->iObj;
-
- if (obj->unlinked)
- yaffs_del_obj(obj);
-
obj->my_inode = NULL;
in->iObj = NULL;
obj->my_inode = NULL;
in->iObj = NULL;
+ if (obj->unlinked)
+ yaffs_del_obj(obj);
}
static void yaffsfs_PutInode(int inodeId)
}
static void yaffsfs_PutInode(int inodeId)