• Jiri Slaby's avatar
    ocfs2: fix memory leak · 1cf257f5
    Jiri Slaby authored
    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: default avatarJiri 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: default avatarJoel Becker <joel.becker@oracle.com>
    1cf257f5
heartbeat.c 62.2 KB