Do libxo cleanup even in case of errors.

MFC after:	1 month
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
trasz 2016-05-26 14:21:02 +00:00
parent cffffee812
commit 6c6e98f959

View File

@ -987,10 +987,11 @@ main(int argc, char **argv)
if (error != 0)
xo_err(1, "close");
xo_close_container("iscsictl");
xo_finish();
if (failed != 0)
return (1);
xo_close_container("iscsictl");
xo_finish();
return (0);
}