windows: fix buffer leak after failed udp send

Fixes #1426

Signed-off-by: Saúl Ibarra Corretgé <saghul@gmail.com>