bug-gnustep
[Top][All Lists]
Advanced

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

[bug #39099] GSBinaryPLGenerator leaks memory


From: Michael Silva
Subject: [bug #39099] GSBinaryPLGenerator leaks memory
Date: Tue, 28 May 2013 15:15:13 +0000
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_2) AppleWebKit/536.26.17 (KHTML, like Gecko) Version/6.0.2 Safari/536.26.17

URL:
  <http://savannah.gnu.org/bugs/?39099>

                 Summary: GSBinaryPLGenerator leaks memory
                 Project: GNUstep
            Submitted by: msilvax28
            Submitted on: Tue 28 May 2013 03:15:12 PM GMT
                Category: Base/Foundation
                Severity: 3 - Normal
              Item Group: Bug
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

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.






    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?39099>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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