ocfs2: free vol_label in ocfs2_delete_osb()
authorJoseph Qi <joseph.qi@huawei.com>
Thu, 25 Sep 2014 23:05:11 +0000 (16:05 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 26 Sep 2014 15:10:34 +0000 (08:10 -0700)
commitf13a568e5a787f3980f3bd00ba9dd0b78a734129
treef3d242b4397a3103d8e01cb26dbf59aafe8d86c4
parent005f800508eb391480f463dad3d54e5b4ec67d57
ocfs2: free vol_label in ocfs2_delete_osb()

osb->vol_label is malloced in ocfs2_initialize_super but not freed if
error occurs or during umount, thus causing a memory leak.

Signed-off-by: Joseph Qi <joseph.qi@huawei.com>
Reviewed-by: joyce.xue <xuejiufei@huawei.com>
Cc: Mark Fasheh <mfasheh@suse.com>
Cc: Joel Becker <jlbec@evilplan.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/ocfs2/super.c