libalpm: correctly load signatures for package files
On Sun, Apr 10, 2011 at 6:25 AM, Rémy Oudompheng
> A duplicate _alpm_pkg_new() call made libalpm load the signature
> in a separate pmpkg_t that was leaked forever afterwards.
> Signed-off-by: Rémy Oudompheng <email@example.com>
> This patch make the signatures for local files load
And now leaks an empty pmpkg_t object if the file could not be stat-ed
and we return early, no?
I think all we need to do is remove the now erroneous second call to
pkg_new; given this was a 2008 patch retrofitted to 2011 code, there
is no surprise Allan or I messed up slightly on the rebase.