Minor file system clean-up

This commit is contained in:
Gregory Nutt
2015-06-11 11:24:20 -06:00
parent ed9c45bcef
commit 8293a5e773
10 changed files with 39 additions and 24 deletions

View File

@@ -174,11 +174,14 @@ void mq_inode_release(FAR struct inode *inode)
mq_msgqfree(msgq);
inode->u.i_mqueue = NULL;
/* Release and free the inode container */
/* Release and free the inode container. If it has been properly
* unlinked, then the peer pointer should be NULL.
*/
inode_semgive();
inode_free(inode->i_child);
kmm_free(inode);
DEBUGASSERT(inode->i_peer == NULL);
inode_free(inode);
return;
}