Re: [PATCH] objtool: Fix memory leak in check.c
From: Peter Zijlstra
Date: Tue Oct 03 2023 - 12:27:07 EST
On Wed, Oct 04, 2023 at 12:13:35AM +0800, Kuan-Wei Chiu wrote:
> In the 'disas_funcs' function of check.c, the 'cmd' string used to store
> a command is not being freed after it's used, leading to a memory leak.
> This patch adds the necessary 'free(cmd)' statement to release the
> allocated memory.
It'll exit more or less right after doing this.