title: IPhone watchdog & malloc
body: <p>My app is using quite a bit of memory and therefore it's often get killed by the watchdog.
  In my efforts to reduce memory consumptions (and change some other stuff too) I've rewritten some of the system functions (replaced few CoreText classes to be exact).  </p>
  
  <p>That actually went pretty well and I've managed to reduce memory consumption by ~3mb (according to allocations and memory monitor instruments).<br>
  Nevertheless, now my application is getting killed by watchdog way sooner. When old version is still working (even though consuming more memory) new version gets killed by OS.  </p>
  
  <p>I think that it might be happening due to an excessive use of malloc/free to alloc/free lots of small structures on the heap.  </p>
  
  <p>Is it so?<br>
  What other problems might be causing this behavior (memory consumption decrease / watchdog kills app faster)?<br>
  Can it be due to a fact that its my app managing memory now and not the system library?</p>