sd/milkymist-memcard: Plug minor memory leak in realize
authorMarkus Armbruster <armbru@redhat.com>
Tue, 30 Jun 2020 09:03:34 +0000 (11:03 +0200)
committerMarkus Armbruster <armbru@redhat.com>
Thu, 2 Jul 2020 04:25:29 +0000 (06:25 +0200)
commitb98e8d1230ff7023bb34ddeb7194424dfcbaf789
treeac477d3f5f335fbe81a11c86f26a00d696685b9b
parentb368123dd9979e8840b6c98ff69722e7bf1da54d
sd/milkymist-memcard: Plug minor memory leak in realize

milkymist_memcard_realize() leaks an Error object when realization of
its "sd-card" device fails.  Quite harmless, since we only ever
realize this once, in milkymist_init() via milkymist_memcard_create().

Plug the leak.

Fixes: 3d0369ba499866cc6a839f71212d97876500762d
Cc: Philippe Mathieu-Daudé <philmd@redhat.com>
Cc: Michael Walle <michael@walle.cc>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20200630090351.1247703-10-armbru@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
hw/sd/milkymist-memcard.c