summaryrefslogtreecommitdiff
path: root/lib/libalpm/add.c
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2007-04-26 21:08:34 -0400
committerDan McGee <dan@archlinux.org>2007-04-28 02:59:58 -0400
commita3491224df3209563b68cc45b9b2d8ab747d208a (patch)
tree46f0b25b5c457479cc937e10957562ce751cd9fd /lib/libalpm/add.c
parent0984dab1f2b7beae455518b06aa5675890e01d9c (diff)
downloadpacman-a3491224df3209563b68cc45b9b2d8ab747d208a.tar.xz
Remove FREEPKG macro and correctly type _alpm_pkg_free
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/add.c')
-rw-r--r--lib/libalpm/add.c6
1 files changed, 3 insertions, 3 deletions
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 */