index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Allan McRae <allan@archlinux.org> | 2014-12-24 10:37:28 +1000 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2014-12-24 11:19:30 +1000 |
commit | 52d2ff648d2d6672b7a6458b76f639388f32d3df (patch) | |
tree | a3e0ac49b24c2d569244f7702f0cc1fe06873305 /lib/libalpm/dload.c | |
parent | 123ecb8e07a6489ceb2fc2e89f4ef62370aaf5bf (diff) |
-rw-r--r-- | lib/libalpm/dload.c | 2 |
diff --git a/lib/libalpm/dload.c b/lib/libalpm/dload.c index e3409f99..c5186bef 100644 --- a/lib/libalpm/dload.c +++ b/lib/libalpm/dload.c @@ -379,7 +379,7 @@ static FILE *create_tempfile(struct dload_payload *payload, const char *localpat payload->tempfile_name = randpath; free(payload->remote_name); STRDUP(payload->remote_name, strrchr(randpath, '/') + 1, - RET_ERR(payload->handle, ALPM_ERR_MEMORY, NULL)); + fclose(fp); RET_ERR(payload->handle, ALPM_ERR_MEMORY, NULL)); return fp; } |