md-cluster: free md_cluster_info if node leave cluster
authorGuoqing Jiang <gqjiang@suse.com>
Fri, 24 Feb 2017 03:15:12 +0000 (11:15 +0800)
committerShaohua Li <shli@fb.com>
Thu, 9 Mar 2017 17:01:47 +0000 (09:01 -0800)
commit9c8043f337f14d1743006dfc59c03e80a42e3884
tree1934109184f04fc891ed6ce6bea30fdde3ef85d4
parent99b3d74ec05c4a4c57766a90d65b53d78ab06404
md-cluster: free md_cluster_info if node leave cluster

To avoid memory leak, we need to free the cinfo which
is allocated when node join cluster.

Reviewed-by: NeilBrown <neilb@suse.com>
Signed-off-by: Guoqing Jiang <gqjiang@suse.com>
Signed-off-by: Shaohua Li <shli@fb.com>
drivers/md/md-cluster.c