summaryrefslogtreecommitdiff
path: root/cups/tls-darwin.c
diff options
context:
space:
mode:
authorMichael R Sweet <michaelrsweet@gmail.com>2016-04-11 18:36:42 -0400
committerMichael R Sweet <michaelrsweet@gmail.com>2016-04-11 18:36:42 -0400
commite34d1ec4b926b3d31cfc00408faf99e69aa48ce8 (patch)
tree959c12745af04b8ae040e96ca4eff21f9196ad7a /cups/tls-darwin.c
parentfc4bbb58d617e66e14fa478712ebe7a55f8756b5 (diff)
downloadcups-e34d1ec4b926b3d31cfc00408faf99e69aa48ce8.tar.gz
Work around undocumented side-effect of SecItemAdd...
Diffstat (limited to 'cups/tls-darwin.c')
-rw-r--r--cups/tls-darwin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cups/tls-darwin.c b/cups/tls-darwin.c
index 91731438f..0520294bd 100644
--- a/cups/tls-darwin.c
+++ b/cups/tls-darwin.c
@@ -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;