Re: [PATCH] objtool: Fix memory leak in objtool_create_backup
From: Miroslav Benes
Date: Wed Mar 02 2022 - 04:09:55 EST
Hi,
On Wed, 2 Mar 2022, cz18811105578@xxxxxxxxx wrote:
> From: Zong Cao <cz18811105578@xxxxxxxxx>
>
> The error handling branch did not properly free the memory before
> return, which would cause memory leak.
yes, but objtool exits immediately in those cases so this is not really
needed in the end.
Regards
Miroslav