Re: [PATCH] staging: r8188eu: fix a memory leak in rtw_mp_pwrtrk()

From: Dan Carpenter
Date: Thu Dec 09 2021 - 09:29:24 EST


On Thu, Dec 09, 2021 at 09:25:15PM +0800, Jianglei Nie wrote:
> Line 5968 (#1) allocates a memory chunk for input by kmalloc().
> Line 5973 (#2), line 5989 (#4) and line 5994 (#5) free the input
> before the function returns while line 5986 (#3) forget to free it,
> which will lead to a memory leak. This bug influences all stable
> versions from 5.15.1 to 5.15.7.
>

This code was all deleted in September. Please work against
git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git#staging-next
or linux-next.

regards,
dan carpenter