Commit a304c042 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Fixed memory leak (can anyone confirm?)

parent 50058c53
...@@ -1361,6 +1361,7 @@ static int RtspCallbackId( httpd_callback_sys_t *p_args, ...@@ -1361,6 +1361,7 @@ static int RtspCallbackId( httpd_callback_sys_t *p_args,
answer->psz_status = strdup( "Unknown session id" ); answer->psz_status = strdup( "Unknown session id" );
answer->i_body = 0; answer->i_body = 0;
answer->p_body = NULL; answer->p_body = NULL;
free( ip );
break; break;
} }
} }
...@@ -1371,6 +1372,8 @@ static int RtspCallbackId( httpd_callback_sys_t *p_args, ...@@ -1371,6 +1372,8 @@ static int RtspCallbackId( httpd_callback_sys_t *p_args,
else else
sprintf( psz_access, "udp{raw}" ); sprintf( psz_access, "udp{raw}" );
sprintf( psz_url, "%s:%d", ip, i_port ); sprintf( psz_url, "%s:%d", ip, i_port );
free( ip );
if( ( p_access = sout_AccessOutNew( p_stream->p_sout, psz_access, psz_url ) ) == NULL ) if( ( p_access = sout_AccessOutNew( p_stream->p_sout, psz_access, psz_url ) ) == NULL )
{ {
msg_Err( p_stream, "cannot create the access out for %s://%s", msg_Err( p_stream, "cannot create the access out for %s://%s",
......
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