* src/bdf/bdflib.c (bdf_parse_glyphs_): Avoid possible leak.

master
Alexei Podtelezhnikov 2 months ago
parent bbc445e165
commit aab40d5cc4
  1. 4
      src/bdf/bdflib.c

@ -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…
Cancel
Save