server: Avoid leaking the ifaddrs structure in bind_to_interface().

Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zebediah Figura 2021-07-21 20:34:53 -05:00 committed by Alexandre Julliard
parent 2c582b683d
commit d3b64637a0
1 changed files with 2 additions and 0 deletions

View File

@ -1844,6 +1844,8 @@ static int bind_to_interface( struct sock *sock, const struct sockaddr_in *addr
return 1;
}
}
freeifaddrs( ifaddrs );
return 0;
}