Fix an fd leak spotted by the unit test
Fix an fd leak spotted by the unit test

All the unit tests now pass again (vacuously true before, now
a single solitary test passes)

Signed-off-by: David Scott <63c9eb0ea83039690fefa11afe17873ba8278a56@eu.citrix.com>

xapi-project/message-switch,djs55/xcp-idl,xapi-project/message-switch,xapi-project/message-switch,johnelse/xcp-idl,euanh/xcp-idl,Chunjie/xcp-idl