piix: fix resource leak reported by Coverity
authorzhanghailiang <zhang.zhanghailiang@huawei.com>
Mon, 14 Sep 2015 10:40:10 +0000 (18:40 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 22 Oct 2015 11:34:50 +0000 (14:34 +0300)
commite3fce97cf500c61f23df8e0245e08625fc375295
tree8d7c73804c14ff01d21a12730e7a27bb8b286096
parentf8d82b8eb81d3ea29325b4046fafa8ed41e32449
piix: fix resource leak reported by Coverity

config_fd should be closed before return, or there will
be a resource leak error.

Signed-off-by: zhanghailiang <zhang.zhanghailiang@huawei.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
hw/pci-host/piix.c