Fix memory leak in s_get_interface on Windows.