Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DLM] Fix memory leak in dlm_add_member() when dlm_node_weight() retu…
…rns 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 <[email protected]> Signed-off-by: David Teigland <[email protected]> Signed-off-by: Steven Whitehouse <[email protected]>
- Loading branch information