simplefs_create_fs_object: fix memory leaking of temporary record

This commit is contained in:
Azat Khuzhin 2013-09-14 13:48:15 +04:00
parent a315571b05
commit 6d606a796c

View File

@ -533,6 +533,8 @@ static int simplefs_create_fs_object(struct inode *dir, struct dentry *dentry,
memcpy(dir_contents_datablock, record,
sizeof(struct simplefs_dir_record));
kfree(record);
mark_buffer_dirty(bh);
sync_dirty_buffer(bh);
brelse(bh);