Commit bddd31ee authored by Alessandro Rubini's avatar Alessandro Rubini

sdbfs/kernel: fix a memory leak in inodes

Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent 4a2d20d7
......@@ -164,8 +164,8 @@ static void sdbfs_destroy_inode(struct inode *ino)
{
struct sdbfs_inode *inode;
printk("%s\n", __func__);
inode = container_of(ino, struct sdbfs_inode, ino);
kfree(inode->files);
kmem_cache_free(sdbfs_inode_cache, inode);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment