qemu-bridge-helper: Fix fd leak in main()
authorGonglei <arei.gonglei@huawei.com>
Tue, 10 Jun 2014 09:20:25 +0000 (17:20 +0800)
committerStefan Hajnoczi <stefanha@redhat.com>
Fri, 27 Jun 2014 08:39:10 +0000 (10:39 +0200)
commiteb3f45c5af26f5284b5f8dd7319714ca70676e50
tree3d198bb077432c9f8ec335412a3467d031d53d37
parentff4873cb8c81db89668d8b56e19e57b852edb5f5
qemu-bridge-helper: Fix fd leak in main()

initialize fd and ctlfd, and close them at the end

Signed-off-by: Gonglei <arei.gonglei@huawei.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
qemu-bridge-helper.c