Commit 9f895cda authored by Rémi Duraffort's avatar Rémi Duraffort

Fix potential double free (#cid 403064)

parent cb55a7ee
...@@ -320,7 +320,11 @@ static int Activate( vlc_object_t *p_this ) ...@@ -320,7 +320,11 @@ static int Activate( vlc_object_t *p_this )
intf_sys_t *p_sys = malloc( sizeof( *p_sys ) ); intf_sys_t *p_sys = malloc( sizeof( *p_sys ) );
if( unlikely(p_sys == NULL) ) if( unlikely(p_sys == NULL) )
{
net_ListenClose( p_sys->pi_socket_listen );
free( psz_unix_path );
return VLC_ENOMEM; return VLC_ENOMEM;
}
p_intf->p_sys = p_sys; p_intf->p_sys = p_sys;
p_sys->pi_socket_listen = pi_socket; p_sys->pi_socket_listen = pi_socket;
......
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