mirror of https://github.com/freetype/freetype
* src/cid/cidgload.c (cid_load_glyph): Fix memory leak.
Reported by Kostya Serebryany <kcc@google.com>.
This commit is contained in:
parent
b185747dd6
commit
7643b5839b
|
@ -1,3 +1,9 @@
|
|||
2015-10-17 Werner Lemberg <wl@gnu.org>
|
||||
|
||||
* src/cid/cidgload.c (cid_load_glyph): Fix memory leak.
|
||||
|
||||
Reported by Kostya Serebryany <kcc@google.com>.
|
||||
|
||||
2015-10-17 Werner Lemberg <wl@gnu.org>
|
||||
|
||||
[bdf] Prevent memory leak (#46217).
|
||||
|
|
|
@ -167,8 +167,6 @@
|
|||
glyph_length - cs_offset );
|
||||
}
|
||||
|
||||
FT_FREE( charstring );
|
||||
|
||||
#ifdef FT_CONFIG_OPTION_INCREMENTAL
|
||||
|
||||
/* Incremental fonts can optionally override the metrics. */
|
||||
|
@ -193,6 +191,8 @@
|
|||
#endif /* FT_CONFIG_OPTION_INCREMENTAL */
|
||||
|
||||
Exit:
|
||||
FT_FREE( charstring );
|
||||
|
||||
return error;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue