]> git.ipfire.org Git - pakfire.git/commit
repo: Avoid double-free when downloading files
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 26 Jan 2025 15:22:02 +0000 (15:22 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 26 Jan 2025 15:22:02 +0000 (15:22 +0000)
commit8ab031ffa6f82828f1c35cb486f1078566e05223
tree6062f6ba96f7df35565d38e3986151e6a4078499
parent3909e4739b4b26131a9f0fd14fcc7571071f86ce
repo: Avoid double-free when downloading files

We pass control over f to xfer which will close it, so we cannot call
fclose() ourselves any more.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/pakfire/repo.c