* src/bdf/bdflib.c (bdf_parse_glyphs_): Avoid possible leak.
This commit is contained in:
parent
bbc445e165
commit
aab40d5cc4
|
@ -1636,6 +1636,10 @@
|
|||
goto Exit;
|
||||
}
|
||||
|
||||
/* Do not leak the bitmap or reset its size */
|
||||
if ( p->flags & BDF_BITMAP_ )
|
||||
goto Exit;
|
||||
|
||||
/* Expect the BBX field next. */
|
||||
if ( _bdf_strncmp( line, "BBX", 3 ) == 0 )
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue