hw/block/m25p80: fix resource leak
commiteef9f19eea26cd8b4553459118f87d7150b53c5a
authorShannon Zhao <shannon.zhao@linaro.org>
Thu, 7 Jul 2016 12:47:01 +0000 (7 13:47 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 7 Jul 2016 12:47:01 +0000 (7 13:47 +0100)
tree3008b59630190af1da09fe27296c193d6ae9ce37
parente0dadc1e9ef1f35208e5d2af9c7740c18a0b769f
hw/block/m25p80: fix resource leak

These two are spot by Coverity 1357232 and 1357233.

Signed-off-by: Shannon Zhao <shannon.zhao@linaro.org>
Message-id: 1467684998-12076-1-git-send-email-zhaoshenglong@huawei.com
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/block/m25p80.c