Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/libalpm/dload.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/libalpm/dload.c b/lib/libalpm/dload.c
index ac47e94a..4fd744ef 100644
--- a/lib/libalpm/dload.c
+++ b/lib/libalpm/dload.c
@@ -490,13 +490,11 @@ char SYMEXPORT *alpm_fetch_pkgurl(alpm_handle_t *handle, const char *url)
}
void _alpm_dload_payload_free(struct dload_payload *payload) {
- struct dload_payload *load = (struct dload_payload *)payload;
+ ASSERT(payload, return);
- ASSERT(load, return);
-
- FREE(load->fileurl);
- FREE(load->cd_filename);
- FREE(load);
+ FREE(payload->fileurl);
+ FREE(payload->cd_filename);
+ FREE(payload);
}
/* vim: set ts=2 sw=2 noet: */