From 73764a90fe2c55fd9620165c3fa8fe6cfe03dc98 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sun, 23 Feb 2014 10:31:36 +0100 Subject: [PATCH] xbps-remove: missed an error path where pkgdb lock must be released. --- bin/xbps-remove/main.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bin/xbps-remove/main.c b/bin/xbps-remove/main.c index 1c995114..63aa3a35 100644 --- a/bin/xbps-remove/main.c +++ b/bin/xbps-remove/main.c @@ -371,10 +371,12 @@ main(int argc, char **argv) rv = remove_pkg(&xh, argv[i], maxcols, recursive); if (rv == 0) continue; - else if (rv != EEXIST) + else if (rv != EEXIST) { + xbps_pkgdb_unlock(&xh); exit(rv); - else + } else { reqby_force = true; + } } if (reqby_force && !ignore_revdeps) { xbps_pkgdb_unlock(&xh);