Do libxo cleanup even in case of errors.

MFC after:	1 month
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Edward Tomasz Napierala 2016-05-26 14:21:02 +00:00
parent aa63d825a7
commit 54fc4636f3
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=300746

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