nlopess Sat Sep 29 11:24:06 2007 UTC Modified files: (Branch: PHP_5_3) /php-src/ext/openssl xp_ssl.c Log: use FREE_ZVAL() instead of free() to free a zval http://cvs.php.net/viewvc.cgi/php-src/ext/openssl/xp_ssl.c?r1=1.22.2.3.2.9.2.1&r2=1.22.2.3.2.9.2.2&diff_format=u Index: php-src/ext/openssl/xp_ssl.c diff -u php-src/ext/openssl/xp_ssl.c:1.22.2.3.2.9.2.1 php-src/ext/openssl/xp_ssl.c:1.22.2.3.2.9.2.2 --- php-src/ext/openssl/xp_ssl.c:1.22.2.3.2.9.2.1 Sat Sep 29 11:18:41 2007 +++ php-src/ext/openssl/xp_ssl.c Sat Sep 29 11:24:05 2007 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: xp_ssl.c,v 1.22.2.3.2.9.2.1 2007/09/29 11:18:41 nlopess Exp $ */ +/* $Id: xp_ssl.c,v 1.22.2.3.2.9.2.2 2007/09/29 11:24:05 nlopess Exp $ */ #include "php.h" #include "ext/standard/file.h" @@ -464,7 +464,7 @@ "ssl", "peer_certificate", zcert); peer_cert = NULL; - efree(zcert); + FREE_ZVAL(zcert); } if (SUCCESS == php_stream_context_get_option( @@ -490,7 +490,7 @@ zend_list_insert(mycert, php_openssl_get_x509_list_id())); add_next_index_zval(arr, zcert); - efree(zcert); + FREE_ZVAL(zcert); } } else {
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php