title: How to autorelease a non returned object under ARC
body: <p>Consider a function like this one:  </p>
  
  <pre><code>void* getData()
  {
      void* data= malloc(32);
      NSData* __autoreleasing dataObject= [NSData dataWithBytesNoCopy: data length: 32 freeWhenDone: YES]
      return data;
  }
  </code></pre>
  
  <p>If I try to execute this code and print the values (though they're not initialised, but just to make a test) in the area of memory returned, I don't get any exception.  </p>
  
  <p>But if I try to put a breakpoint and see the map of living objects, there isn't a NSData object alive, though data is still in the heap, why?  </p>
  
  <p>I would know how to return an autoreleased object, like before ARC. ARC handles everything, but in this case data is deallocated because I exit from the function scope. How to make it be alive and autoreleased after the call?</p>