From bf64f38a9e984897ae22986212374082ff295f1d Mon Sep 17 00:00:00 2001 From: Jarne Clauw <67628242+JarneClauw@users.noreply.github.com> Date: Mon, 13 Apr 2026 21:05:39 +0200 Subject: [PATCH] Fixing memory leak --- ext/openssl/openssl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ext/openssl/openssl.c b/ext/openssl/openssl.c index 8fc830b756d7c..43aaacaedcef9 100644 --- a/ext/openssl/openssl.c +++ b/ext/openssl/openssl.c @@ -2169,6 +2169,7 @@ PHP_FUNCTION(openssl_x509_parse) str_serial = i2s_ASN1_INTEGER(NULL, asn1_serial); /* Can return NULL on error or memory allocation failure */ if (!str_serial) { + OPENSSL_free(hex_serial); php_openssl_store_errors(); goto err; }