From 887d439404e79fd4103f6b5583a3cd875f9963e9 Mon Sep 17 00:00:00 2001 From: Nuno Lopes Date: Sat, 29 Sep 2007 11:24:05 +0000 Subject: [PATCH] use FREE_ZVAL() instead of free() to free a zval --- ext/openssl/xp_ssl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/openssl/xp_ssl.c b/ext/openssl/xp_ssl.c index 3e276c4f97..0b36009269 100644 --- a/ext/openssl/xp_ssl.c +++ b/ext/openssl/xp_ssl.c @@ -464,7 +464,7 @@ static inline int php_openssl_enable_crypto(php_stream *stream, "ssl", "peer_certificate", zcert); peer_cert = NULL; - efree(zcert); + FREE_ZVAL(zcert); } if (SUCCESS == php_stream_context_get_option( @@ -490,7 +490,7 @@ static inline int php_openssl_enable_crypto(php_stream *stream, zend_list_insert(mycert, php_openssl_get_x509_list_id())); add_next_index_zval(arr, zcert); - efree(zcert); + FREE_ZVAL(zcert); } } else { -- 2.50.1