From bb96486b127054e7b0e02c467b0f61a20d227161 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 27 Jun 2019 08:02:19 +0200 Subject: [PATCH] xbps-install: make sure to call xbps_end() before exiting. --- bin/xbps-install/main.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/xbps-install/main.c b/bin/xbps-install/main.c index 371f26c8..3622af5a 100644 --- a/bin/xbps-install/main.c +++ b/bin/xbps-install/main.c @@ -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); }