From: Nuno Lopes Date: Sat, 29 Sep 2007 11:24:05 +0000 (+0000) Subject: use FREE_ZVAL() instead of free() to free a zval X-Git-Tag: BEFORE_IMPORT_OF_MYSQLND_IN_5_3~58 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=887d439404e79fd4103f6b5583a3cd875f9963e9;p=php use FREE_ZVAL() instead of free() to free a zval --- 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 {