aboutsummaryrefslogtreecommitdiff
path: root/lib/test_overflow.c
diff options
context:
space:
mode:
authorColin Ian King <[email protected]>2021-07-12 15:52:14 +0100
committerMiquel Raynal <[email protected]>2021-08-06 21:44:09 +0200
commit99dc4ad992bf156692b088fab4d98deab7cbd3e6 (patch)
treebd6c484643c14dd318916406b8cd18b2cfe3dc32 /lib/test_overflow.c
parent2394e628738933aa014093d93093030f6232946d (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 <[email protected]> Reviewed-by: Heiko Schocher <[email protected]> Signed-off-by: Miquel Raynal <[email protected]> Link: https://lore.kernel.org/linux-mtd/[email protected]
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions