Skip to content

Commit e2a1dbd

Browse files
committed
Merge branch 'PHP-7.4'
* PHP-7.4: Free RSA public key in mysqlnd sha256 auth
2 parents ee45dba + b6a59ce commit e2a1dbd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ext/mysqlnd/mysqlnd_auth.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -808,6 +808,7 @@ mysqlnd_sha256_auth_get_auth_data(struct st_mysqlnd_authentication_plugin * self
808808
*auth_data_len = server_public_key_len;
809809
ret = malloc(*auth_data_len);
810810
RSA_public_encrypt(passwd_len + 1, (zend_uchar *) xor_str, ret, server_public_key, RSA_PKCS1_OAEP_PADDING);
811+
RSA_free(server_public_key);
811812
}
812813
}
813814

0 commit comments

Comments
 (0)