diff options
author | Aurelien Foret <aurelien@archlinux.org> | 2006-02-01 06:40:53 +0000 |
---|---|---|
committer | Aurelien Foret <aurelien@archlinux.org> | 2006-02-01 06:40:53 +0000 |
commit | 173d18f3f8171122318a817d4c3e53c2f1a06ece (patch) | |
tree | c8a19a6bbed98955e3bebdb3ba9ddb30cb33ae34 /lib | |
parent | 1042f1e7ceb0f1df79cc981656eef5fb4dbc4009 (diff) | |
download | pacman-173d18f3f8171122318a817d4c3e53c2f1a06ece.tar.xz |
Added a missing trans_release call upon lib shutdown (patch from VMiklos <vmiklos@frugalware.org>)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libalpm/alpm.c | 5 |
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); |