Commit 70e17f40 authored by Dave Kleikamp's avatar Dave Kleikamp

JFS: [CHECKER] Memory leak on commonly executed path

The jfs_log structure was never being freed at unmount time.
parent 6316036f
......@@ -1486,6 +1486,7 @@ int lmLogClose(struct super_block *sb)
* in-line log in host file system
*/
rc = lmLogShutdown(log);
kfree(log);
goto out;
}
......@@ -1515,6 +1516,8 @@ int lmLogClose(struct super_block *sb)
bd_release(bdev);
blkdev_put(bdev);
kfree(log);
out:
up(&jfs_log_sem);
jfs_info("lmLogClose: exit(%d)", rc);
......
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