diff options
author | Colin Ian King <colin.king@canonical.com> | 2021-07-12 15:52:14 +0100 |
---|---|---|
committer | Miquel Raynal <miquel.raynal@bootlin.com> | 2021-08-06 21:44:09 +0200 |
commit | 99dc4ad992bf156692b088fab4d98deab7cbd3e6 (patch) | |
tree | bd6c484643c14dd318916406b8cd18b2cfe3dc32 /crypto/aegis128-core.c | |
parent | 2394e628738933aa014093d93093030f6232946d (diff) |
mtd: devices: mchp48l640: Fix memory leak on cmd
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>
Reviewed-by: Heiko Schocher <hs@denx.de>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20210712145214.101377-1-colin.king@canonical.com
Diffstat (limited to 'crypto/aegis128-core.c')
0 files changed, 0 insertions, 0 deletions