debuginfod: Clear and reset debuginfod_client winning_headers on reuse
authorMark Wielaard <mark@klomp.org>
Sat, 4 Dec 2021 19:21:16 +0000 (20:21 +0100)
committerMark Wielaard <mark@klomp.org>
Tue, 7 Dec 2021 08:39:57 +0000 (09:39 +0100)
commit66f704ae705a489d35cd03aa9687e192a844d766
tree5be9b148035feffe737ded3bb5061cca719f4c0b
parent99782bd23feec8d42b22912d20027a0d4f4e9b47
debuginfod: Clear and reset debuginfod_client winning_headers on reuse

gcc address sanitizer detected a leak of the debuginfod_client
winning_headers when the handle was reused. Make sure to free and
reset the winning_headers field before reuse.

Signed-off-by: Mark Wielaard <mark@klomp.org>
debuginfod/ChangeLog
debuginfod/debuginfod-client.c