[#1404] cppcheck fix for msso - leaked fd