index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Dan McGee <dan@archlinux.org> | 2007-04-26 21:08:34 -0400 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2007-04-28 02:59:58 -0400 |
commit | a3491224df3209563b68cc45b9b2d8ab747d208a (patch) | |
tree | 46f0b25b5c457479cc937e10957562ce751cd9fd /lib/libalpm/add.c | |
parent | 0984dab1f2b7beae455518b06aa5675890e01d9c (diff) |
-rw-r--r-- | lib/libalpm/add.c | 6 |
diff --git a/lib/libalpm/add.c b/lib/libalpm/add.c index adbddb28..ed9b622e 100644 --- a/lib/libalpm/add.c +++ b/lib/libalpm/add.c @@ -124,7 +124,7 @@ int _alpm_add_loadtarget(pmtrans_t *trans, pmdb_t *db, char *name) /* pm_errno is already set by pkg_load() */ goto error; } - FREEPKG(i->data); + _alpm_pkg_free(i->data); i->data = newpkg; } else { _alpm_log(PM_LOG_WARNING, _("newer version %s-%s is in the target list -- skipping"), @@ -156,7 +156,7 @@ int _alpm_add_loadtarget(pmtrans_t *trans, pmdb_t *db, char *name) return(0); error: - FREEPKG(info); + _alpm_pkg_free(info); return(-1); } @@ -836,7 +836,7 @@ int _alpm_add_commit(pmtrans_t *trans, pmdb_t *db) EVENT(trans, (is_upgrade) ? PM_TRANS_EVT_UPGRADE_DONE : PM_TRANS_EVT_ADD_DONE, newpkg, oldpkg); - FREEPKG(oldpkg); + _alpm_pkg_free(oldpkg); } /* run ldconfig if it exists */ |