[base] Fix memory leak (#58611).

* src/base/ftobjs.c (FT_New_Size): When the call to `clazz->init_size'
fails, make sure to free `size->internal'.
GSoC-2020-greg
Sebastian Rasmussen 5 years ago committed by Werner Lemberg
parent 575b78d9e3
commit a4429959b0
  1. 7
      ChangeLog
  2. 1
      src/base/ftobjs.c

@ -1,3 +1,10 @@
2020-06-19 Sebastian Rasmussen <sebras@gmail.com>
[base] Fix memory leak (#58611).
* src/base/ftobjs.c (FT_New_Size): When the call to `clazz->init_size'
fails, make sure to free `size->internal'.
2020-06-19 Sebastian Rasmussen <sebras@gmail.com>
[cff] Fix memory leak (#58610).

@ -2857,6 +2857,7 @@
if ( error )
{
FT_FREE( node );
FT_FREE( size->internal );
FT_FREE( size );
}

Loading…
Cancel
Save