From 173d18f3f8171122318a817d4c3e53c2f1a06ece Mon Sep 17 00:00:00 2001 From: Aurelien Foret Date: Wed, 1 Feb 2006 06:40:53 +0000 Subject: Added a missing trans_release call upon lib shutdown (patch from VMiklos ) --- lib/libalpm/alpm.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/libalpm/alpm.c') 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); -- cgit v1.2.3-24-g4f1b