]> git.saurik.com Git - apple/security.git/blobdiff - OSX/libsecurity_keychain/lib/SecImportExportUtils.cpp
Security-58286.260.20.tar.gz
[apple/security.git] / OSX / libsecurity_keychain / lib / SecImportExportUtils.cpp
index a748ee6e85dd7375f9e053264fdd15c9cc9cb87e..ab2017ecd6e95e3300aa17f90e04049013f30b2b 100644 (file)
@@ -760,6 +760,7 @@ static CSSM_RETURN impExpCreatePassKey(
                &ccHand);
        if(crtn) {
                SecImpExpDbg("impExpCreatePassKey: CSSM_CSP_CreateKeyGenContext error");
                &ccHand);
        if(crtn) {
                SecImpExpDbg("impExpCreatePassKey: CSSM_CSP_CreateKeyGenContext error");
+               free(ourKey);
                return crtn;
        }
        /* subsequent errors to errOut: */
                return crtn;
        }
        /* subsequent errors to errOut: */