debuginfod: Fix some memory leaks on debuginfod-client error paths.
authorMark Wielaard <mark@klomp.org>
Wed, 1 Dec 2021 12:12:49 +0000 (13:12 +0100)
committerMark Wielaard <mark@klomp.org>
Sun, 5 Dec 2021 20:58:14 +0000 (21:58 +0100)
commit99782bd23feec8d42b22912d20027a0d4f4e9b47
treeef42031effa66fa256d12e5366e7b2a448d15351
parent32ceb411faec6ca61ee04707fe014efa15e9a5df
debuginfod: Fix some memory leaks on debuginfod-client error paths.

In a couple of places we might leak some memory when we encounter
an error. tmp_url might leak if realloc failed. escaped_string might
leak when setting up the data handle fails and we don't use it.
And one of the goto out1 should have been goto out2 to make sure
we release all allocated resources on exit (also updated a wrong
comment about that).

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