objective-see / BlockBlock

BlockBlock provides continual protection by monitoring persistence locations.
GNU General Public License v3.0
626 stars 39 forks source link

Memory leak due to autoreleasepools not getting drained #21

Open TellowKrinkle opened 3 years ago

TellowKrinkle commented 3 years ago

Was having issues with heavy memory usage, and upon inspection it looks like there's a lot of NSDatas and NSStrings lying around

When randomly clicking on some of them, most were referenced only by autorelease pools, and were initially created by [NSString UTF8String] and [NSString stringWithFormat:], so I'm guessing they were made by Shared/logging.m:logMsg but it's hard to tell as I don't have symbols If you have the dsym available for 1.1.0 this should be helpful: memgraph with malloc stack logging