Coverity: Resource leak: fix return without free
Signed-off-by: Anthony Youngman <anthony@youngman.org.uk> Signed-off-by: Jes Sorensen <jsorensen@fb.com>
This commit is contained in:
parent
898bd1ecef
commit
4a670aabdc
|
@ -281,6 +281,8 @@ static int select_devices(struct mddev_dev *devlist,
|
|||
st->ss->free_super(st);
|
||||
dev_policy_free(pol);
|
||||
domain_free(domains);
|
||||
if (tst)
|
||||
tst->ss->free_super(tst);
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue