linux/fs/dlm
Jesper Juhl 1a2bf2eefb [DLM] Fix memory leak in dlm_add_member() when dlm_node_weight() returns less than zero
There's a memory leak in fs/dlm/member.c::dlm_add_member().

If "dlm_node_weight(ls->ls_name, nodeid)" returns < 0, then
we'll return without freeing the memory allocated to the (at
that point yet unused) 'memb'.
This patch frees the allocated memory in that case and thus
avoids the leak.

Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com>
Signed-off-by: David Teigland <teigland@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
2007-08-14 10:30:04 +01:00
..
ast.c
ast.h
config.c
config.h
debug_fs.c
dir.c
dir.h
dlm_internal.h
Kconfig
lock.c
lock.h
lockspace.c
lockspace.h
lowcomms.c [DLM] zero unused parts of sockaddr_storage 2007-08-14 10:29:27 +01:00
lowcomms.h
lvb_table.h
main.c
Makefile
member.c [DLM] Fix memory leak in dlm_add_member() when dlm_node_weight() returns less than zero 2007-08-14 10:30:04 +01:00
member.h
memory.c
memory.h
midcomms.c
midcomms.h
netlink.c
rcom.c [DLM] fix NULL ls usage 2007-08-14 10:28:44 +01:00
rcom.h
recover.c
recover.h
recoverd.c
recoverd.h
requestqueue.c
requestqueue.h
user.c
user.h
util.c
util.h