Re: [PATCH] debuginfod: Fix some memory leaks on debuginfod-client error paths.

2021-12-05 Thread Mark Wielaard
On Wed, Dec 01, 2021 at 01:27:23PM +0100, Mark Wielaard wrote: > 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 shou

[PATCH] debuginfod: Fix some memory leaks on debuginfod-client error paths.

2021-12-01 Thread Mark Wielaard
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