Commit 2c2b9c66 authored by Rémi Duraffort's avatar Rémi Duraffort

access_http: fix potential memleak.

(cherry picked from commit a829c558)
Signed-off-by: default avatarRémi Duraffort <ivoire@videolan.org>
parent f86d0e6a
......@@ -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