summaryrefslogtreecommitdiff
path: root/src/pacman/remove.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pacman/remove.c')
-rw-r--r--src/pacman/remove.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/pacman/remove.c b/src/pacman/remove.c
index 84cac94c..6dc3758c 100644
--- a/src/pacman/remove.c
+++ b/src/pacman/remove.c
@@ -138,7 +138,9 @@ int pacman_remove(list_t *targets)
error:
FREELIST(finaltargs);
- alpm_trans_release();
+ if(alpm_trans_release() == -1) {
+ ERR(NL, "failed to release transaction (%s)\n", alpm_strerror(pm_errno));
+ }
return(1);
}