]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Work around undocumented side-effect of SecItemAdd...
authorMichael R Sweet <michaelrsweet@gmail.com>
Mon, 11 Apr 2016 22:36:42 +0000 (18:36 -0400)
committerMichael R Sweet <michaelrsweet@gmail.com>
Mon, 11 Apr 2016 22:36:42 +0000 (18:36 -0400)
cups/tls-darwin.c

index 91731438f1d407bc91918ddfb81a408869366b4c..0520294bded6b68311a2b34f8a660dd14c52b3d7 100644 (file)
@@ -161,7 +161,7 @@ cupsMakeServerCredentials(
     CFDictionaryRef itemAttrs = CFDictionaryCreate(kCFAllocatorDefault, itemKeys, itemValues, sizeof(itemKeys) / sizeof(itemKeys[0]), &kCFTypeDictionaryKeyCallBacks, &kCFTypeDictionaryValueCallBacks);
 
     err = SecItemAdd(itemAttrs, NULL);
-    CFRelease(itemAttrs);
+    /* SecItemAdd consumes itemAttrs... */
 
     if (err != noErr)
       goto cleanup;