Messages in this thread | | | From | Namhyung Kim <> | Date | Sun, 8 Oct 2023 22:21:49 -0700 | Subject | Re: [PATCH] perf hisi-ptt: Fix memory leak in lseek failure handling |
| |
On Mon, Oct 2, 2023 at 9:48 PM Namhyung Kim <namhyung@kernel.org> wrote: > > Hello, > > On Sat, Sep 30, 2023 at 12:27 AM Kuan-Wei Chiu <visitorckw@gmail.com> wrote: > > > > In the previous code, there was a memory leak issue where the previously > > allocated memory was not freed upon a failed lseek operation. This patch > > addresses the problem by releasing the old memory before returning -errno > > in case of a lseek failure. This ensures that memory is properly managed > > and avoids potential memory leaks. > > > > Signed-off-by: Kuan-Wei Chiu <visitorckw@gmail.com> > > Acked-by: Namhyung Kim <namhyung@kernel.org>
Applied to perf-tools-next, thanks!
| |