bugThe FreeType Project - Bugs: bug #28497, Memory leak in src/base/ftobjs.c ...

 
 

bug #28497: Memory leak in src/base/ftobjs.c (function Mac_Read_sfnt_Resource)

Submitted by:  Sebastien Metrot <meeloo>
Submitted on:  Wed 06 Jan 2010 03:36:20 PM UTC  
 
Severity: 3 - NormalItem Group: Hack required
Status: InvalidPrivacy: Public
Assigned to: Werner LEMBERG <wl>Open/Closed: Closed
Planned Release: None

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Fri 08 Jan 2010 06:09:59 PM UTC, comment #4:

Done.

Werner LEMBERG <wl>
Project AdministratorIn charge of this item.
Fri 08 Jan 2010 05:22:47 PM UTC, comment #3:

Yes, very invalid indeed.
Sorry.

Sebastien

Sebastien Metrot <meeloo>
Fri 08 Jan 2010 05:14:43 PM UTC, comment #2:

Shall I tag this bug report as invalid?

Werner LEMBERG <wl>
Project AdministratorIn charge of this item.
Wed 06 Jan 2010 04:42:54 PM UTC, comment #1:

It seems I was mistaken: the data is passed to a stream that takes ownership or it.

Sebastien Metrot <meeloo>
Wed 06 Jan 2010 03:36:20 PM UTC, original submission:

I may be mistaken but I think there is a memory leak in the function Mac_Read_sfnt_Resource: sfnt_data is allocated but never freed. Adding FT_FREE(sfnt_data); after the exit label should fix this.

Cheers,

Sébastien

Sebastien Metrot <meeloo>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by wl (Posted a comment)
  • -unavailable- added by meeloo (Submitted the item)
  • -unavailable- added by meeloo
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 08 Jan 2010 06:09:59 PM UTCwlStatusNeed Info=>Invalid
      Open/ClosedOpen=>Closed
    Fri 08 Jan 2010 05:14:43 PM UTCwlStatusNone=>Need Info
      Assigned toNone=>wl
    Wed 06 Jan 2010 03:36:20 PM UTCmeelooCarbon-Copy-=>Added -unavailable-

    Back to the top


    Powered by Savane 3.1-cleanup1