Added a missing trans_release call upon lib shutdown (patch from VMiklos <vmiklos@frugalware.org>)
This commit is contained in:
parent
1042f1e7ce
commit
173d18f3f8
1 changed files with 5 additions and 0 deletions
|
@ -93,6 +93,11 @@ int alpm_release()
|
||||||
|
|
||||||
ASSERT(handle != NULL, RET_ERR(PM_ERR_HANDLE_NULL, -1));
|
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 */
|
/* close local database */
|
||||||
if(handle->db_local) {
|
if(handle->db_local) {
|
||||||
db_close(handle->db_local);
|
db_close(handle->db_local);
|
||||||
|
|
Loading…
Add table
Reference in a new issue