bugGNUstep - Bugs: bug #39099, GSBinaryPLGenerator leaks memory

Group
 
 

bug #39099: GSBinaryPLGenerator leaks memory

Submitter:  Michael Silva <msilvax28>
Submitted:  Tue 28 May 2013 03:15:12 PM UTC
   
 
Category:  Base/Foundation Severity:  3 - Normal
Item Group:  Bug Status:  Fixed
Privacy:  Public Assigned to:  None
Open/Closed:  In Test
* Mandatory Fields

Add a New Comment Rich Markup
   

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>
Group 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>

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by CaS (Posted a comment)
  • -email is unavailable- added by msilvax28 (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-06-27 CaS StatusNone Fixed
        Open/ClosedOpen In Test

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code