Commit dcb2cb4f authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

microdns: Fix memory leak

parent cbf902af
......@@ -356,6 +356,8 @@ parse_entries( const struct rr_entry *p_entries, bool b_renderer,
}
if( psz_ip == NULL || i_nb_srv == 0 )
{
for( unsigned int i = 0; i < i_nb_srv; ++i )
free( p_srvs[i].psz_device_name );
free( p_srvs );
return VLC_EGENERIC;
}
......
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