Commit 3967c16b authored by ivoire's avatar ivoire
Browse files

vobsub: fix memory leak

parent d6aa5c4b
......@@ -432,7 +432,10 @@ static int TextLoad( text_t *txt, stream_t *s )
char **ppsz_new;
if( psz == NULL || (n >= INT_MAX/sizeof(char *)) )
{
free( psz );
break;
}
ppsz_new = realloc( lines, (n + 1) * sizeof (char *) );
if( ppsz_new == NULL )
......
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