summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/deps.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libalpm/deps.c')
-rw-r--r--lib/libalpm/deps.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/libalpm/deps.c b/lib/libalpm/deps.c
index d8b79974..eb9a983d 100644
--- a/lib/libalpm/deps.c
+++ b/lib/libalpm/deps.c
@@ -601,8 +601,7 @@ int resolvedeps(pmdb_t *local, PMList *databases, pmsync_t *sync, PMList *list,
s = sync_new(PM_SYSUPG_DEPEND, NULL, !!!provides->data!!!);
if(s == NULL) {
pm_errno = PM_ERR_MEMORY;
- FREELIST(deps);
- return(-1);
+ goto error;
}
sync->pkg->reason = PM_PKG_REASON_DEPEND;
}