tony2001                Wed Apr  4 10:44:49 2007 UTC

  Modified files:              
    /php-src/ext/openssl        xp_ssl.c 
  Log:
  fix leak on error
  
  
http://cvs.php.net/viewvc.cgi/php-src/ext/openssl/xp_ssl.c?r1=1.31&r2=1.32&diff_format=u
Index: php-src/ext/openssl/xp_ssl.c
diff -u php-src/ext/openssl/xp_ssl.c:1.31 php-src/ext/openssl/xp_ssl.c:1.32
--- php-src/ext/openssl/xp_ssl.c:1.31   Wed Mar 14 19:21:23 2007
+++ php-src/ext/openssl/xp_ssl.c        Wed Apr  4 10:44:49 2007
@@ -16,7 +16,7 @@
   +----------------------------------------------------------------------+
 */
 
-/* $Id: xp_ssl.c,v 1.31 2007/03/14 19:21:23 tony2001 Exp $ */
+/* $Id: xp_ssl.c,v 1.32 2007/04/04 10:44:49 tony2001 Exp $ */
 
 #include "php.h"
 #include "ext/standard/file.h"
@@ -169,6 +169,9 @@
                                                        err,
                                                        ebuf ? "OpenSSL Error 
messages:\n" : "",
                                                        ebuf ? ebuf : "");
+                                       if (ebuf) {
+                                               efree(ebuf);
+                                       }
                        }
                                
                        retry = 0;

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to