title: Should I free the C array I pass into NSBezierPath's setLineDash:count:phase: method?
body: <p>I am setting the line dash style on an NSBezierPath instance:</p>
  
  <pre><code>NSBezierPath *path = [NSBezierPath path];
  // Get the path information...
  
  NSInteger count = 0;
  // Get the array count...
  
  CGFloat *dashLengths = (CGFloat *)malloc(sizeof(CGFloat) * count);
  // Populate the array...
  
  CGFloat phase = 0.0f;
  // Get the phase...
  
  [path setLineDash:dashLengths count:count phase:phase];
  </code></pre>
  
  <p>Should I call free() on dashLengths to prevent a memory leak? Or would releasing the array cause a error later on?</p>