ocfs2: fix memory leak
authorJiri Slaby <jslaby@suse.cz>
Sat, 6 Nov 2010 09:06:52 +0000 (10:06 +0100)
committerJoel Becker <joel.becker@oracle.com>
Thu, 18 Nov 2010 22:10:56 +0000 (14:10 -0800)
commit1cf257f511918ba5b2eabd64d9acd40f1d7866ef
tree7ba566c24e910eb87b112e1560b294ab5779036c
parenta48a982a6bd3896274dd643397c72da9258411e2
ocfs2: fix memory leak

Stanse found that o2hb_heartbeat_group_make_item leaks some memory on
fail paths. Fix the paths by adding a new label and jump there.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Cc: Mark Fasheh <mfasheh@suse.com>
Cc: Joel Becker <joel.becker@oracle.com>
Cc: ocfs2-devel@oss.oracle.com
Cc: Alexander Viro <viro@zeniv.linux.org.uk>
Cc: linux-fsdevel@vger.kernel.org
Signed-off-by: Joel Becker <joel.becker@oracle.com>
fs/ocfs2/cluster/heartbeat.c