Re: [PATCH] objtool: Free memory in error case in special_get_alts

2020-06-15 Thread Peter Zijlstra
On Mon, Jun 15, 2020 at 12:40:32PM +0200, Miroslav Benes wrote: > Hi, > > On Fri, 12 Jun 2020, Tobias Klauser wrote: > > > Avoid a memory leak in case get_alt_entry returns an error. > > yes, this is not the only one, but I doubt we want to spend time on that. > The process is about to exit any

Re: [PATCH] objtool: Free memory in error case in special_get_alts

2020-06-15 Thread Miroslav Benes
Hi, On Fri, 12 Jun 2020, Tobias Klauser wrote: > Avoid a memory leak in case get_alt_entry returns an error. yes, this is not the only one, but I doubt we want to spend time on that. The process is about to exit anyway. Miroslav > Signed-off-by: Tobias Klauser > --- > tools/objtool/special.

[PATCH] objtool: Free memory in error case in special_get_alts

2020-06-12 Thread Tobias Klauser
Avoid a memory leak in case get_alt_entry returns an error. Signed-off-by: Tobias Klauser --- tools/objtool/special.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/objtool/special.c b/tools/objtool/special.c index e74e0189de22..f6f7dee1ba77 100644 --- a/tools/objto