]> git.ipfire.org Git - thirdparty/mdadm.git/commit - Assemble.c
Assemble: re-arrange freeing of 'tst' in load_devices().
authorNeilBrown <neilb@suse.de>
Tue, 25 Feb 2014 03:59:12 +0000 (14:59 +1100)
committerNeilBrown <neilb@suse.de>
Tue, 25 Feb 2014 03:59:12 +0000 (14:59 +1100)
commit9ee314dab91dc8479d2e981d0849ce777f7ea492
tree2c744458b564cb68d3ba022d9fe24a15e0b0f5fa
parentdf842e69a3cb7316a06ba45f8f04d7b9beb0170f
Assemble:  re-arrange freeing of 'tst' in load_devices().

When we return in error, we need to free(tst), and ->free_super(tst);
Sometimes we didn't.

Also the final ->free_super(tst) should be followed by free(tst)
but wasn't.

Move that file free forward in the code a bit as we will want to use
the tst there in the next patch.

Signed-off-by: NeilBrown <neilb@suse.de>
Assemble.c