Added a missing trans_release call upon lib shutdown (patch from VMiklos <vmiklos@frugalware.org>)
This commit is contained in:
parent
1042f1e7ce
commit
173d18f3f8
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue