]> git.dujemihanovic.xyz Git - u-boot.git/commit
regmap: Fix potential memory leaks
authorFaiz Abbas <faiz_abbas@ti.com>
Mon, 11 Nov 2019 09:59:05 +0000 (15:29 +0530)
committerTom Rini <trini@konsulko.com>
Tue, 3 Dec 2019 13:44:14 +0000 (08:44 -0500)
commit42a4ee8a11bb230c81f27c14886cc2ee7ddf2c72
tree716638ef29794a28d1cad17076e079b8b700887a
parentae3ef109c308652d2143019038a49b43917fdf12
regmap: Fix potential memory leaks

Free allocated memory in case of an error in regmap_init_mem() and
regmap_init_mem_index().

Signed-off-by: Faiz Abbas <faiz_abbas@ti.com>
drivers/core/regmap.c