Commit 3cdff66b authored by Rémi Duraffort's avatar Rémi Duraffort

Close file in all cases.

parent 6f6d891f
......@@ -200,11 +200,14 @@ static char *svg_GetTemplate( vlc_object_t *p_this )
psz_template = malloc( ( s.st_size + 42 ) * sizeof( char ) );
if( !psz_template )
{
fclose( file );
return NULL;
}
memset( psz_template, 0, s.st_size + 1 );
fread( psz_template, s.st_size, 1, file );
fclose( file );
}
fclose( file );
}
}
if( !psz_template )
......
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