Description
The new_cert variable in openssl_csr_sign implementation is not correctly freed if there is an error. It should be always checked in the clean if not used (set to the new object) and if so, then freed.
PHP Version
PHP 8.2+
Operating System
No response