Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/depcomp
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-09-28 02:56:36 -0500
committerDan McGee <dan@archlinux.org>2011-09-28 04:48:33 -0500
commitf66f9f11cd010a05efe28d0607abbf29ff8dffa5 (patch)
tree9feef88c5394fd36ca71070a71c2efcf57151165 /depcomp
parentea3c47825ea6a8cfd0e0d63fd7da0120fcacabc8 (diff)
Fix memory leak in download payload->remote_name
In the sync code, we explicitly allocated a string for this field, while in the dload code itself it was filled in with a pointer to another string. This led to a memory leak in the sync download case. Make remote_name non-const and always explicitly allocate it. This patch ensures this as well as uses malloc + snprintf (rather than calloc) in several codepaths, and eliminates the only use of PATH_MAX in the download code. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'depcomp')
0 files changed, 0 insertions, 0 deletions