Commit 1e36b84e authored by Rafaël Carré's avatar Rafaël Carré

Fix a memory leak

parent d51dba48
......@@ -207,7 +207,10 @@ static void AddItem( services_discovery_t *p_sd, input_item_t * p_input
return;
p_udi_entry->psz_udi = strdup( psz_device );
if( !p_udi_entry->psz_udi )
{
free( p_udi_entry );
return;
}
vlc_gc_incref( p_input );
p_udi_entry->p_item = p_input;
......
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