[Top][All Lists]

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

[sr #109665] Memory Leak using @synchronized on Windows

From: William Everett
Subject: [sr #109665] Memory Leak using @synchronized on Windows
Date: Fri, 29 Mar 2019 16:07:46 -0400 (EDT)
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0.3 Safari/605.1.15


                 Summary: Memory Leak using @synchronized on Windows
                 Project: GNUstep
            Submitted by: williameverett
            Submitted on: Fri 29 Mar 2019 08:07:45 PM UTC
                Category: Foundation
                Priority: 5 - Normal
                Severity: 3 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
        Operating System: Microsoft Windows



We are seeing a memory leak when using the @synchronized directive on

The following code run on a loop will steadily leak memory:

                NSMutableArray *testArray = [[NSMutableArray alloc] init];
                @synchronized(testArray) {
                                [testArray addObject:@"foooooo"];
                [testArray release];

If you comment out the synchronized part, there is no leak.

This is possibly related to bug #29338: Crash using @synchronized on Windows


Reply to this item at:


  Message sent via Savannah

reply via email to

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