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