Fix memory-leak in evp_test.

Change-Id: Ibdaeeaa45dbdb31921ae7e99a4eb3708f99ccaa9
Reviewed-on: https://boringssl-review.googlesource.com/3301
Reviewed-by: Adam Langley <agl@google.com>
This commit is contained in:
Adam Langley 2015-02-03 17:22:13 -08:00 committed by Adam Langley
parent 4e04ee8786
commit 42ca3a4623

View File

@ -518,6 +518,9 @@ out:
if (pkey) {
EVP_PKEY_free(pkey);
}
if (algor != NULL) {
X509_ALGOR_free(algor);
}
return ret;
}