ocfs2: free vol_label in ocfs2_delete_osb()
authorJoseph Qi <[email protected]>
Thu, 25 Sep 2014 23:05:11 +0000 (16:05 -0700)
committerLinus Torvalds <[email protected]>
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 <[email protected]>
Reviewed-by: joyce.xue <[email protected]>
Cc: Mark Fasheh <[email protected]>
Cc: Joel Becker <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
fs/ocfs2/super.c