diff --git a/lib/libalpm/alpm.c b/lib/libalpm/alpm.c index d0c04a03..2ae89186 100644 --- a/lib/libalpm/alpm.c +++ b/lib/libalpm/alpm.c @@ -100,6 +100,11 @@ int SYMEXPORT alpm_release(alpm_handle_t *myhandle) CHECK_HANDLE(myhandle, return -1); + /* free transaction memory */ + if(myhandle->trans && alpm_trans_release(myhandle) == -1) { + return -1; + } + /* close local database */ db = myhandle->db_local; if(db) {