Skip to content
Snippets Groups Projects
Commit eb949a16 authored by Alessandro Rubini's avatar Alessandro Rubini
Browse files

sdbfs/kernel: fix a memory leak in inodes



Signed-off-by: default avatarAlessandro Rubini <rubini@gnudd.com>
parent e0946609
Branches
Tags
No related merge requests found
......@@ -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);
}
......
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