freetype-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Git][freetype/freetype][master] * src/truetype/ttgload.c (TT_Load_Simpl


From: Alexei Podtelezhnikov (@apodtele)
Subject: [Git][freetype/freetype][master] * src/truetype/ttgload.c (TT_Load_Simple_Glyph): Triage memory leak.
Date: Tue, 07 Mar 2023 03:48:51 +0000

Alexei Podtelezhnikov pushed to branch master at FreeType / FreeType

Commits:

  • b36193d0
    by Alexei Podtelezhnikov at 2023-03-06T22:48:21-05:00
    * src/truetype/ttgload.c (TT_Load_Simple_Glyph): Triage memory leak.
    
    This leak has been introduced in the previous commit and immediately
    detected:
      https://chromium-review.googlesource.com/c/chromium/src/+/4313202
    

1 changed file:

Changes:

  • src/truetype/ttgload.c
    ... ... @@ -453,6 +453,8 @@
    453 453
           /* and thus allocate the bytecode array size by ourselves     */
    
    454 454
           if ( n_ins )
    
    455 455
           {
    
    456
    +        if ( exec->glyphSize )
    
    457
    +          FT_FREE( exec->glyphIns );
    
    456 458
             if ( FT_QNEW_ARRAY( exec->glyphIns, n_ins ) )
    
    457 459
               return error;
    
    458 460
     
    


  • reply via email to

    [Prev in Thread] Current Thread [Next in Thread]