xbps-install: make sure to call xbps_end() before exiting.

This commit is contained in:
Juan RP 2019-06-27 08:02:19 +02:00
parent db00ccc3b0
commit bb96486b12
No known key found for this signature in database
GPG Key ID: AF19F6CB482F9368

View File

@ -263,7 +263,7 @@ main(int argc, char **argv)
}
}
if (eexist == argc)
return 0;
goto out;
rv = exec_transaction(&xh, maxcols, yes, drun);
} else if (!update) {
@ -280,11 +280,12 @@ main(int argc, char **argv)
}
}
if (eexist == argc)
return 0;
goto out;
rv = exec_transaction(&xh, maxcols, yes, drun);
}
out:
xbps_end(&xh);
exit(rv);
}