Skip to content

Commit d1a1239

Browse files
committed
Fix extra leak
1 parent a8d0e14 commit d1a1239

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

ext/openssl/openssl.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4256,7 +4256,12 @@ static bool php_openssl_pkey_init_legacy_dh(DH *dh, zval *data, bool *is_private
42564256
OPENSSL_PKEY_SET_BN(data, p);
42574257
OPENSSL_PKEY_SET_BN(data, q);
42584258
OPENSSL_PKEY_SET_BN(data, g);
4259-
if (!p || !g || !DH_set0_pqg(dh, p, q, g)) {
4259+
if (!p) {
4260+
BN_free(p);
4261+
return 0;
4262+
}
4263+
4264+
if (!DH_set0_pqg(dh, p, q, g)) {
42604265
return 0;
42614266
}
42624267

main/php_version.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/* edit configure.ac to change version number */
33
#define PHP_MAJOR_VERSION 8
44
#define PHP_MINOR_VERSION 4
5-
#define PHP_RELEASE_VERSION 18
5+
#define PHP_RELEASE_VERSION 19
66
#define PHP_EXTRA_VERSION "-dev"
7-
#define PHP_VERSION "8.4.18-dev"
8-
#define PHP_VERSION_ID 80418
7+
#define PHP_VERSION "8.4.19-dev"
8+
#define PHP_VERSION_ID 80419

0 commit comments

Comments
 (0)