Re: [pacman-dev] [PATCH] libalpm: free trans before databases

2020-01-30 Thread Allan McRae
On 20/1/20 5:18 am, morganamilo wrote: > When releasing the handle, alpm tries to do some self clean up by > freeing the databases and transaction. > > However, databases refuse to unregister is there is an in progress > transaction. Causing them to leak if the handle is released while > a transac

[pacman-dev] [PATCH] libalpm: free trans before databases

2020-01-19 Thread morganamilo
When releasing the handle, alpm tries to do some self clean up by freeing the databases and transaction. However, databases refuse to unregister is there is an in progress transaction. Causing them to leak if the handle is released while a transaction is active. diff --git a/lib/libalpm/alpm.c b/