index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Dave Reisner <dreisner@archlinux.org> | 2011-08-11 08:15:24 -0400 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-08-11 11:18:00 -0500 |
commit | c4112da8c3c628570d059679abd5bd4c79286184 (patch) | |
tree | 23edfe3f914ab43f53a5afd19917a65c3355e274 /lib/libalpm/dload.c | |
parent | 82d45d66ca36f48dd89867e817d198bd9e055829 (diff) |
-rw-r--r-- | lib/libalpm/dload.c | 10 |
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: */ |