diff options
author | Dan McGee <dan@archlinux.org> | 2012-02-29 16:33:21 -0600 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2012-03-05 11:44:34 -0600 |
commit | 4b384b7f0b0e840e09e3bffd2dbb59b88bdd4864 (patch) | |
tree | 4f54602267e83c2f5a75b4bdb165b8bafd08cb3a /test/pacman/ldconfig.stub | |
parent | d1151b5ab9c407732ded462a0fe0259dea8dcc2a (diff) |
Fix a memory leak when loading an invalid package
This is easily triggered via a `pacman -Sc` operation when it attempts
to open a delta file as a package- we end up leaking loads of memory
due to us never freeing the archive object. When you have upwards of
1200 delta files in your sync database directory, this results in a
memory leak of nearly 1.5 MiB.
Also fix another memory leak noticed at the same time- we need to call
the internal _alpm_pkg_free() function, as without the origin data being
set the public free function will do nothing.
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'test/pacman/ldconfig.stub')
0 files changed, 0 insertions, 0 deletions