Commit a829c558 authored by Rémi Duraffort's avatar Rémi Duraffort

access_http: fix potential memleak.

parent ad9b410d
......@@ -812,7 +812,10 @@ static int ReadICYMeta( access_t *p_access )
psz_meta = malloc( i_read + 1 );
if( net_Read( p_access, p_sys->fd, p_sys->p_vs,
(uint8_t *)psz_meta, i_read, true ) != i_read )
{
free( psz_meta );
return VLC_EGENERIC;
}
psz_meta[i_read] = '\0'; /* Just in case */
......
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