summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/libalpm/diskspace.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libalpm/diskspace.c b/lib/libalpm/diskspace.c
index df414ab9..fe2036d5 100644
--- a/lib/libalpm/diskspace.c
+++ b/lib/libalpm/diskspace.c
@@ -251,7 +251,8 @@ int _alpm_check_diskspace(alpm_handle_t *handle)
if(root_mp == NULL) {
_alpm_log(handle, ALPM_LOG_ERROR, _("could not determine root mount point %s\n"),
handle->root);
- return -1;
+ error = 1;
+ goto finish;
}
replaces = alpm_list_count(trans->remove);
@@ -319,6 +320,7 @@ int _alpm_check_diskspace(alpm_handle_t *handle)
}
}
+finish:
for(i = mount_points; i; i = i->next) {
alpm_mountpoint_t *data = i->data;
FREE(data->mount_dir);