felipe          Tue Jul 29 12:36:36 2008 UTC

  Modified files:              
    /php-src/ext/standard       url.c 
  Log:
  - Fix mem. leak
  
  
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/url.c?r1=1.108&r2=1.109&diff_format=u
Index: php-src/ext/standard/url.c
diff -u php-src/ext/standard/url.c:1.108 php-src/ext/standard/url.c:1.109
--- php-src/ext/standard/url.c:1.108    Wed Jun  4 19:34:45 2008
+++ php-src/ext/standard/url.c  Tue Jul 29 12:36:36 2008
@@ -15,7 +15,7 @@
    | Author: Jim Winstead <[EMAIL PROTECTED]>                                  
|
    +----------------------------------------------------------------------+
  */
-/* $Id: url.c,v 1.108 2008/06/04 19:34:45 rrichards Exp $ */
+/* $Id: url.c,v 1.109 2008/07/29 12:36:36 felipe Exp $ */
 
 #include <stdlib.h>
 #include <string.h>
@@ -420,6 +420,7 @@
        resource = php_url_parse_ex(str.s, str_len);
        if (resource == NULL) {
                php_error_docref1(NULL TSRMLS_CC, str.s, E_WARNING, "Unable to 
parse URL");
+               efree(str.s);
                RETURN_FALSE;
        }
 



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

Reply via email to