summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAurelien Foret <aurelien@archlinux.org>2006-02-01 06:40:53 +0000
committerAurelien Foret <aurelien@archlinux.org>2006-02-01 06:40:53 +0000
commit173d18f3f8171122318a817d4c3e53c2f1a06ece (patch)
treec8a19a6bbed98955e3bebdb3ba9ddb30cb33ae34
parent1042f1e7ceb0f1df79cc981656eef5fb4dbc4009 (diff)
downloadpacman-173d18f3f8171122318a817d4c3e53c2f1a06ece.tar.xz
Added a missing trans_release call upon lib shutdown (patch from VMiklos <vmiklos@frugalware.org>)
-rw-r--r--lib/libalpm/alpm.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/libalpm/alpm.c b/lib/libalpm/alpm.c
index c3f55df1..f462d38e 100644
--- a/lib/libalpm/alpm.c
+++ b/lib/libalpm/alpm.c
@@ -93,6 +93,11 @@ int alpm_release()
ASSERT(handle != NULL, RET_ERR(PM_ERR_HANDLE_NULL, -1));
+ /* free the transaction if there is any */
+ if(handle->trans) {
+ alpm_trans_release();
+ }
+
/* close local database */
if(handle->db_local) {
db_close(handle->db_local);