]> git.baikalelectronics.ru Git - uboot.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)
commit10e3e240d66d151020c08d0417aa29c712fc375c
tree716638ef29794a28d1cad17076e079b8b700887a
parent29c34218d76c2ff90c744a21dc67840d5b7d5d8c
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