Commit d20e734b authored by Derk-Jan Hartman's avatar Derk-Jan Hartman

* a missing vlc_freeaddrinfo

parent f45ea277
...@@ -298,8 +298,12 @@ static int announce_SAPAnnounceAdd( sap_handler_t *p_sap, ...@@ -298,8 +298,12 @@ static int announce_SAPAnnounceAdd( sap_handler_t *p_sap,
i = vlc_getaddrinfo( (vlc_object_t *)p_sap, p_session->psz_uri, 0, i = vlc_getaddrinfo( (vlc_object_t *)p_sap, p_session->psz_uri, 0,
&hints, &res ); &hints, &res );
if( i == 0 ) if( i == 0 )
{
i = vlc_getnameinfo( res->ai_addr, res->ai_addrlen, psz_buf, i = vlc_getnameinfo( res->ai_addr, res->ai_addrlen, psz_buf,
sizeof( psz_buf ), NULL, NI_NUMERICHOST ); sizeof( psz_buf ), NULL, NI_NUMERICHOST );
vlc_freeaddrinfo( res );
}
if( i ) if( i )
{ {
msg_Err( p_sap, "Invalid URI for SAP announce : %s : %s", msg_Err( p_sap, "Invalid URI for SAP announce : %s : %s",
...@@ -566,7 +570,7 @@ static int announce_SendSAPAnnounce( sap_handler_t *p_sap, ...@@ -566,7 +570,7 @@ static int announce_SendSAPAnnounce( sap_handler_t *p_sap,
i_ret = net_Write( p_sap, p_session->p_address->i_wfd, NULL, i_ret = net_Write( p_sap, p_session->p_address->i_wfd, NULL,
p_session->psz_data, p_session->psz_data,
p_session->i_length ); p_session->i_length );
if( i_ret != p_session->i_length ) if( i_ret != p_session->i_length )
{ {
msg_Warn( p_sap, "SAP send failed on address %s (%i %i)", msg_Warn( p_sap, "SAP send failed on address %s (%i %i)",
p_session->p_address->psz_address, p_session->p_address->psz_address,
......
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