[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20231003162658.GE1539@noisy.programming.kicks-ass.net>
Date: Tue, 3 Oct 2023 18:26:58 +0200
From: Peter Zijlstra <peterz@...radead.org>
To: Kuan-Wei Chiu <visitorckw@...il.com>
Cc: jpoimboe@...nel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] objtool: Fix memory leak in check.c
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.
Powered by blists - more mailing lists