hw/arm/vexpress: Fix memory leak reported by Coverity
commitdb25a15817f98c46c5f0eea4f414249d8fbb96b1
authorStefan Weil <sw@weilnetz.de>
Wed, 1 Apr 2015 16:57:29 +0000 (1 17:57 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Wed, 1 Apr 2015 16:57:29 +0000 (1 17:57 +0100)
treea96d097c7e35c250cc8be270ea5b42bc74e9f2b7
parent60ff4e63e2ea4738f114cbaf1f17e6e0184fc09c
hw/arm/vexpress: Fix memory leak reported by Coverity

As the conditional statement had to be split anyway, we can also
add a better error report message.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
Message-id: 1426877963-3556-1-git-send-email-sw@weilnetz.de
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/arm/vexpress.c