nlopess Sat Sep 16 12:05:12 2006 UTC Modified files: (Branch: PHP_5_2) /php-src/ext/openssl openssl.c Log: fix mem leak. hash keys dont need to be strdup'ed http://cvs.php.net/viewvc.cgi/php-src/ext/openssl/openssl.c?r1=1.98.2.5.2.20&r2=1.98.2.5.2.21&diff_format=u Index: php-src/ext/openssl/openssl.c diff -u php-src/ext/openssl/openssl.c:1.98.2.5.2.20 php-src/ext/openssl/openssl.c:1.98.2.5.2.21 --- php-src/ext/openssl/openssl.c:1.98.2.5.2.20 Tue Sep 12 10:53:59 2006 +++ php-src/ext/openssl/openssl.c Sat Sep 16 12:05:12 2006 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: openssl.c,v 1.98.2.5.2.20 2006/09/12 10:53:59 tony2001 Exp $ */ +/* $Id: openssl.c,v 1.98.2.5.2.21 2006/09/16 12:05:12 nlopess Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -1059,7 +1059,7 @@ for (i = 0; i < X509_get_ext_count(cert); i++) { extension = X509_get_ext(cert, i); extdata = X509_EXTENSION_get_data(extension); - extname = strdup(OBJ_nid2sn(OBJ_obj2nid(X509_EXTENSION_get_object(extension)))); + extname = OBJ_nid2sn(OBJ_obj2nid(X509_EXTENSION_get_object(extension))); add_assoc_asn1_string(subitem, extname, extdata); } add_assoc_zval(return_value, "extensions", subitem);
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php