--- a/ext/openssl/xp_ssl.c
+++ b/ext/openssl/xp_ssl.c
@@ -502,7 +502,6 @@ static inline int php_openssl_enable_cry
 										zend_list_insert(mycert,
 											php_openssl_get_x509_list_id()));
 								add_next_index_zval(arr, zcert);
-								FREE_ZVAL(zcert);
 							}
 
 						} else {
