C Memory Management with reference counting and autorelease pool.