<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -48,7 +48,13 @@
     // Create the mime multipart boundary.
     
     // TODO scan `values` to ensure uniqueness of `boundary`. Loop+regen UUID if collision is discovered.
-    NSString *uuid = [(id)CFUUIDCreateString(kCFAllocatorDefault, CFUUIDCreate(kCFAllocatorDefault)) autorelease];
+    CFUUIDRef cfUuid = CFUUIDCreate(kCFAllocatorDefault);
+    NSString * uuid = (id)CFUUIDCreateString(kCFAllocatorDefault, cfUuid);
+    CFRelease(cfUuid);
+#if MAC_OS_X_VERSION_MAX_ALLOWED &gt;= MAC_OS_X_VERSION_10_5
+    uuid = NSMakeCollectable(uuid);
+#endif
+    uuid = [uuid autorelease];
     NSString *boundary = [NSString stringWithFormat:@&quot;x-mime-boundary://%@&quot;, uuid];
     
     //--</diff>
      <filename>lib/NSURLRequest+postForm.m</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>c183d9b54bd6e68a73a7f2686de93c95855382a8</id>
    </parent>
  </parents>
  <author>
    <name>Dave Dribin</name>
    <email>dave@dribin.org</email>
  </author>
  <url>http://github.com/rentzsch/jrfeedbackprovider/commit/bd5bf6f528b98d355210594f35c3b7a7740caf3f</url>
  <id>bd5bf6f528b98d355210594f35c3b7a7740caf3f</id>
  <committed-date>2009-05-25T12:54:37-07:00</committed-date>
  <authored-date>2009-05-25T12:10:46-07:00</authored-date>
  <message>Fix leaked return of CFUUIDCreate() (reported by clang static analyzer). Also make GC dual-mode safe by calling NSMakeCollectable() on return of CFUUIDCreateString()

Signed-off-by: Jonathan 'Wolf' Rentzsch &lt;jwr.git@redshed.net&gt;</message>
  <tree>86fcc037a472c9df10401ca28d4749a5d0364267</tree>
  <committer>
    <name>Jonathan 'Wolf' Rentzsch</name>
    <email>jwr.git@redshed.net</email>
  </committer>
</commit>
