diff options
author | Dan McGee <dan@archlinux.org> | 2008-01-12 08:27:02 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2008-01-22 02:33:32 +0100 |
commit | 927af790ee3ff1495acd2c6b33378a7ab20e0c67 (patch) | |
tree | 200a2cfdcce855f478530e018d1604237b345446 /lib/libalpm/package.c | |
parent | f6785dcb89e380f0f3062b4b7aa485e1cd3c5830 (diff) | |
download | pacman-927af790ee3ff1495acd2c6b33378a7ab20e0c67.tar.gz pacman-927af790ee3ff1495acd2c6b33378a7ab20e0c67.tar.xz |
Convert deltas to dynamic allocation
Another elimination of a static length structure in libalpm. Should result
in a little more memory saved during execution of packages with lots of
deltas attached.
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/package.c')
-rw-r--r-- | lib/libalpm/package.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libalpm/package.c b/lib/libalpm/package.c index a6e7af34..40667038 100644 --- a/lib/libalpm/package.c +++ b/lib/libalpm/package.c @@ -845,7 +845,8 @@ void _alpm_pkg_free(pmpkg_t *pkg) FREELIST(pkg->optdepends); FREELIST(pkg->conflicts); FREELIST(pkg->provides); - FREELIST(pkg->deltas); + alpm_list_free_inner(pkg->deltas, (alpm_list_fn_free)_alpm_delta_free); + alpm_list_free(pkg->deltas); if(pkg->origin == PKG_FROM_FILE) { FREE(pkg->origin_data.file); |