Added a missing trans_release call upon lib shutdown (patch from VMiklos <vmiklos@frugalware.org>)

This commit is contained in:
Aurelien Foret 2006-02-01 06:40:53 +00:00
parent 1042f1e7ce
commit 173d18f3f8
1 changed files with 5 additions and 0 deletions

View File

@ -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);