Commit 2b8ee7da authored by Rémi Duraffort's avatar Rémi Duraffort

FIx socket leak (cid #1049574)

parent 8de5a5b7
...@@ -560,11 +560,8 @@ int net_ConnectDgram( vlc_object_t *p_this, const char *psz_host, int i_port, ...@@ -560,11 +560,8 @@ int net_ConnectDgram( vlc_object_t *p_this, const char *psz_host, int i_port,
#endif #endif
b_unreach = true; b_unreach = true;
else else
{
msg_Warn( p_this, "%s port %d : %m", psz_host, i_port); msg_Warn( p_this, "%s port %d : %m", psz_host, i_port);
net_Close( fd ); net_Close( fd );
continue;
}
} }
freeaddrinfo( res ); freeaddrinfo( res );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment