[vlc-devel] [PATCH] DVB-S scanning support
Rémi Duraffort
ivoire at videolan.org
Tue Aug 3 11:11:13 CEST 2010
> > > + if( p_scan->parameter.type == SCAN_DVB_S )
> > > + /* set satellite config file path */
> > > + strncpy( p_scan->parameter.sat_info.psz_name,
> > > + var_GetString( p_access, "dvb-satellite" ),
> > > + sizeof(p_scan->parameter.sat_info.psz_name) );
> >
> > Memory leak.
> >
>
> Where's it leaking? .psz_name is allocated on the heap.
var_GetString allocate the memory needed for the string (strdup) so you
are leaking here.
best regards
--
Rémi Duraffort | ivoire
More information about the vlc-devel
mailing list