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:
Anthony Youngman 2018-06-15 22:18:14 +01:00 committed by Jes Sorensen
parent 898bd1ecef
commit 4a670aabdc
1 changed files with 2 additions and 0 deletions

View File

@ -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;
}