- Resource leak : 1088005, 1087972
Change-Id: I22859a80e5f8ff3ff6056df6738d180ab9fbfbf1
Signed-off-by: Jihoon Jung <jh8801.jung@samsung.com>
switch (type) {
case 0:
result = 0;
+#if OPENSSL_VERSION_NUMBER >= 0x10100000L // OpenSSL 1.1.1
+ EVP_MD_CTX_free(ctx);
+#endif
return result;
/* RSASSA-PSS, RSASSA-PKCS1-v1_5 */
switch (type) {
case 0:
result = 0;
+#if OPENSSL_VERSION_NUMBER >= 0x10100000L // OpenSSL 1.1.1
+ EVP_MD_CTX_free(ctx);
+#endif
return result;
/* RSASSA-PSS, RSASSA-PKCS1-v1_5 */