summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/cache.c
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2007-08-22 05:29:10 +0200
committerDan McGee <dan@archlinux.org>2007-08-22 05:29:10 +0200
commit515754faacf9dd33b94e6e5a17ca04d27d61f482 (patch)
tree4788e1d46318b1fd21184696683ec779a9ec7ddb /lib/libalpm/cache.c
parentd09d114e99c29d1392c546a6553650ecde5138fc (diff)
downloadpacman-515754faacf9dd33b94e6e5a17ca04d27d61f482.tar.gz
pacman-515754faacf9dd33b94e6e5a17ca04d27d61f482.tar.xz
Various valgrind mem leak fixes
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/cache.c')
-rw-r--r--lib/libalpm/cache.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libalpm/cache.c b/lib/libalpm/cache.c
index 01abb96c..10021634 100644
--- a/lib/libalpm/cache.c
+++ b/lib/libalpm/cache.c
@@ -87,6 +87,7 @@ void _alpm_db_free_pkgcache(pmdb_t *db)
for(tmp = db->pkgcache; tmp; tmp = alpm_list_next(tmp)) {
_alpm_pkg_free(tmp->data);
}
+ alpm_list_free(db->pkgcache);
db->pkgcache = NULL;
if(db->grpcache) {