Messages in this thread | | | From | Miquel Raynal <> | Subject | Re: [PATCH] mtd: devices: mchp48l640: Fix memory leak on cmd | Date | Fri, 16 Jul 2021 00:50:21 +0200 |
| |
On Mon, 2021-07-12 at 14:52:14 UTC, Colin King wrote: > From: Colin Ian King <colin.king@canonical.com> > > The allocation for cmd is not being kfree'd on the return leading to > a memory leak. Fix this by kfree'ing it. > > Addresses-Coverity: ("Resource leak") > Fixes: 88d125026753 ("mtd: devices: add support for microchip 48l640 EERAM") > Signed-off-by: Colin Ian King <colin.king@canonical.com>
Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git mtd/fixes, thanks.
Miquel
| |