bugGNUstep - Bugs: bug #39099, GSBinaryPLGenerator leaks memory

 
 

You are not allowed to post comments on this tracker with your current authentification level.

bug #39099: GSBinaryPLGenerator leaks memory

Submitted by:  Michael Silva <msilvax28>
Submitted on:  Tue 28 May 2013 03:15:12 PM UTC  
 
Category: Base/FoundationSeverity: 3 - Normal
Item Group: BugStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: In Test

Thu 27 Jun 2013 06:49:03 AM UTC, comment #1:

Hopefully this is fixed now in trunk ... please try it.

Richard Frith-Macdonald <CaS>
Project Member
Tue 28 May 2013 03:15:12 PM UTC, original submission:

When NSPropertyListSerialization dataFromPropertyList: (id)aPropertyList
format: (NSPropertyListFormat)aFormat
errorDescription: (NSString**)anErrorString] is used the argument aPropertyList is retained one more time than it is released if the format NSPropertyListBinaryFormat_v1_0 is used.

It appears that the NSConcreteTableMap double-retains aPropertyList because GSI_MAP_WRITE_VAL() macro in NSConcreteMapTable will retain the key and GSIMapAddPair retains it again.

Not sure of how to fix it properly, but that seems to be where the issue is occurring.

Seen in v1.24.4 GNUstep base release.

Michael Silva <msilvax28>

 

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 CaS (Posted a comment)
  • -unavailable- added by msilvax28 (Submitted the item)
  •  

    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 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 27 Jun 2013 06:49:02 AM UTCCaSStatusNone=>Fixed
      Open/ClosedOpen=>In Test

    Back to the top


    Powered by Savane 3.1-cleanup