[CalendarServer-changes] [15230] PySecureTransport/trunk/OpenSSL/crypto.py

source_changes at macosforge.org source_changes at macosforge.org
Mon Oct 26 08:20:42 PDT 2015


Revision: 15230
          http://trac.calendarserver.org//changeset/15230
Author:   cdaboo at apple.com
Date:     2015-10-26 08:20:42 -0700 (Mon, 26 Oct 2015)
Log Message:
-----------
Fix potential CFRetain leak.

Modified Paths:
--------------
    PySecureTransport/trunk/OpenSSL/crypto.py

Modified: PySecureTransport/trunk/OpenSSL/crypto.py
===================================================================
--- PySecureTransport/trunk/OpenSSL/crypto.py	2015-10-26 14:45:20 UTC (rev 15229)
+++ PySecureTransport/trunk/OpenSSL/crypto.py	2015-10-26 15:20:42 UTC (rev 15230)
@@ -364,6 +364,7 @@
     if error[0] != ffi.NULL or signature == ffi.NULL:
         cferror = CFErrorRef(error[0])
         return "Unable to use private key for Keychain identity: {} - {}".format(identity, cferror.description())
+    signature = CFObjectRef(signature)
 
     return ""
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20151026/ef3261ed/attachment.html>


More information about the calendarserver-changes mailing list