diff options
author | Aurelien Foret <aurelien@archlinux.org> | 2005-04-08 16:29:55 +0000 |
---|---|---|
committer | Aurelien Foret <aurelien@archlinux.org> | 2005-04-08 16:29:55 +0000 |
commit | 36a29b6553e17bee14e6ff11dc271a6f51d7c62e (patch) | |
tree | a87335224b19cd9c580e0d9453ba7a11ed03004a /lib/libalpm/remove.c | |
parent | 3c0ea9451becc1a861bc5dd1c9a574ca08c3fb04 (diff) | |
download | pacman-36a29b6553e17bee14e6ff11dc271a6f51d7c62e.tar.xz |
fixed a small memory leak
Diffstat (limited to 'lib/libalpm/remove.c')
-rw-r--r-- | lib/libalpm/remove.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libalpm/remove.c b/lib/libalpm/remove.c index 515bc538..735cf372 100644 --- a/lib/libalpm/remove.c +++ b/lib/libalpm/remove.c @@ -87,6 +87,8 @@ int remove_prepare(pmdb_t *db, pmtrans_t *trans, PMList **data) info = db_scan(db, miss->depend.name, INFRQ_ALL); if(!pkg_isin(info, trans->packages)) { trans->packages = pm_list_add(trans->packages, info); + } else { + FREEPKG(info); } } FREELIST(lp); |