Commit f4b2930b authored by Filip Roséen's avatar Filip Roséen Committed by Jean-Baptiste Kempf

core/input: fix potential memory-leak during bookmark parsing

Signed-off-by: Thomas Guillem's avatarThomas Guillem <thomas@gllm.fr>
parent d7b9dd3e
......@@ -428,6 +428,8 @@ static input_thread_t *Create( vlc_object_t *p_parent, input_item_t *p_item,
*psz_end = 0;
if( !strncmp( psz_start, "name=", 5 ) )
{
free( p_seekpoint->psz_name );
p_seekpoint->psz_name = strdup(psz_start + 5);
}
else if( !strncmp( psz_start, "time=", 5 ) )
......
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