diff options
author | Michael R Sweet <michaelrsweet@gmail.com> | 2016-04-11 18:36:42 -0400 |
---|---|---|
committer | Michael R Sweet <michaelrsweet@gmail.com> | 2016-04-11 18:36:42 -0400 |
commit | e34d1ec4b926b3d31cfc00408faf99e69aa48ce8 (patch) | |
tree | 959c12745af04b8ae040e96ca4eff21f9196ad7a /cups/tls-darwin.c | |
parent | fc4bbb58d617e66e14fa478712ebe7a55f8756b5 (diff) | |
download | cups-e34d1ec4b926b3d31cfc00408faf99e69aa48ce8.tar.gz |
Work around undocumented side-effect of SecItemAdd...
Diffstat (limited to 'cups/tls-darwin.c')
-rw-r--r-- | cups/tls-darwin.c | 2 |
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; |