Merge branch 'morganamilo/free-trans' into 'master'
libalpm: free trans before databases See merge request pacman/pacman!49
This commit is contained in:
commit
d221d1a901
1 changed files with 5 additions and 0 deletions
|
@ -100,6 +100,11 @@ int SYMEXPORT alpm_release(alpm_handle_t *myhandle)
|
||||||
|
|
||||||
CHECK_HANDLE(myhandle, return -1);
|
CHECK_HANDLE(myhandle, return -1);
|
||||||
|
|
||||||
|
/* free transaction memory */
|
||||||
|
if(myhandle->trans && alpm_trans_release(myhandle) == -1) {
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
/* close local database */
|
/* close local database */
|
||||||
db = myhandle->db_local;
|
db = myhandle->db_local;
|
||||||
if(db) {
|
if(db) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue