ata: ahci: fix memory leak
authorChristian Gmeiner <christian.gmeiner@gmail.com>
Mon, 6 May 2019 13:18:54 +0000 (15:18 +0200)
committerTom Rini <trini@konsulko.com>
Thu, 9 May 2019 23:52:55 +0000 (19:52 -0400)
commit28b4ba94811122d7a91924f62d63d8b25bfa979c
treef800895abe54e8fdd9b3492b53181e7e7c026f58
parent3a90b50a32b6b8a2d66dc10c19e3c15d5bd1a092
ata: ahci: fix memory leak

malloc(..) and memalign(..) are both allocating memory and as a result
we leak the memory allocated with malloc(..).

Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/ata/ahci.c