diff options
author | Dan McGee <dan@archlinux.org> | 2011-09-28 19:58:43 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-09-28 20:01:03 +0200 |
commit | e0acf2f144404e613a75d5aafea2a909989544e9 (patch) | |
tree | fce12af0ebf8344e6b1c10533ee7de5707083f3c /scripts/Makefile.am | |
parent | 9a58d5c6c5a69ebf7a920c357820a59c19d5b641 (diff) | |
download | pacman-e0acf2f144404e613a75d5aafea2a909989544e9.tar.gz pacman-e0acf2f144404e613a75d5aafea2a909989544e9.tar.xz |
Refactor download payload reset and free
This was done to squash a memory leak in the sync database download
code. When we downloaded a database and then reused the payload struct,
we could find ourselves calling get_fullpath() for the signatures and
overwriting non-freed values we had left over from the database
download.
Refactor the payload_free function into a payload_reset function that we
can call that does NOT free the payload itself, so we can reuse payload
structs. This also allows us to move the payload to the stack in some
call paths, relieving us of the need to alloc space.
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'scripts/Makefile.am')
0 files changed, 0 insertions, 0 deletions