Commit 272a3f39 authored by Thomas Guillem's avatar Thomas Guillem

upnp: fix leak in error path

parent 7e11257c
......@@ -213,6 +213,7 @@ static int Open( vlc_object_t *p_this )
p_sys->p_server_list = new(std::nothrow) SD::MediaServerList( p_sd );
if ( unlikely( p_sys->p_server_list == NULL ) )
{
free(p_sys);
return VLC_ENOMEM;
}
......
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