eeze_disk: fix potential memory leak 88/258688/1
authorChristopher Michael <devilhorns@comcast.net>
Thu, 25 Feb 2021 15:02:07 +0000 (10:02 -0500)
committerShinwoo Kim <cinoo.kim@samsung.com>
Mon, 24 May 2021 08:28:00 +0000 (17:28 +0900)
commit321d46aae68b7d543e0acc9f779a063a7151bc41
tree1cc14822928ae92cb5c0e3fc5ae1bb47e1bf2292
parentb5305cf1682ff1595e40de8952d7809d67144e06
eeze_disk: fix potential memory leak

If allocation for disk fails, then we leak memory from previously
called _new_device function.

This patch based on D12223 from akanad (Wonki Kim)

ref D12223

Change-Id: If22a28d99a6b91eadc1b82103daabf92db515923
src/lib/eeze/eeze_disk.c