md-cluster: fix missing memory free
authorShaohua Li <shli@fb.com>
Fri, 22 Jan 2016 23:54:42 +0000 (15:54 -0800)
committerShaohua Li <shli@fb.com>
Mon, 25 Jan 2016 02:13:18 +0000 (18:13 -0800)
commit4ac7a65f8070098187b1e2afa992848366aae079
tree8849ccc28d50cde6f814b7280ac820a538fc30ec
parent6a84f57241e1fb9fb6772256f538d1073359a32d
md-cluster: fix missing memory free

There are several places we allocate dlm_lock_resource, but not free it.

leave() need free a lock resource too (from Guoqing)
Cc: Goldwyn Rodrigues <rgoldwyn@suse.com>
Cc: Guoqing Jiang <gqjiang@suse.com>
Cc: NeilBrown <neilb@suse.com>
Signed-off-by: Shaohua Li <shli@fb.com>
drivers/md/md-cluster.c