8008107: [parfait] Use after free of pointer in jdk/src/share/native/sun/security/pkcs11/wrapper/p11_convert.c

Reviewed-by: mullan, chegar
This commit is contained in:
John Zavgren 2013-02-19 15:31:19 -05:00
parent 71666c4c5a
commit ab4a830be8

View File

@ -687,8 +687,8 @@ CK_SSL3_KEY_MAT_PARAMS jSsl3KeyMatParamToCKSsl3KeyMatParam(JNIEnv *env, jobject
if ((*env)->ExceptionCheck(env)) {
free(ckParam.RandomInfo.pClientRandom);
free(ckParam.RandomInfo.pServerRandom);
free(ckParam.pReturnedKeyMaterial);
free(ckParam.pReturnedKeyMaterial->pIVClient);
free(ckParam.pReturnedKeyMaterial);
return ckParam;
}