robbiehanson/CocoaLumberjack — Issue #14: Potential leak in DDlog isRegisteredClass
Author: ddewaele
Created: 2011-12-26 12:48:11+00:00
State: open

My application has implemented dynamic loglevels as described in https://github.com/robbiehanson/CocoaLumberjack/wiki/DynamicLogLevels

When profiling my application, I'm receiving a leak when retrieving the list of registered classes :

The responsible caller is :
```
+[DDlog isRegisteredClass:]
```
The event causing the leak is a malloc

My code is retrieving a list of registered classes like this

```
self.registeredLogClasses = [DDLog registeredClasses];
```

This array is then used to toggle loglevels on those classes. It seems that this is causing the leak.