felipe          Tue Jul 29 12:41:58 2008 UTC

  Modified files:              
    /php-src/ext/standard       url.c 
  Log:
  - Fix the fix
  
  
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/url.c?r1=1.109&r2=1.110&diff_format=u
Index: php-src/ext/standard/url.c
diff -u php-src/ext/standard/url.c:1.109 php-src/ext/standard/url.c:1.110
--- php-src/ext/standard/url.c:1.109    Tue Jul 29 12:36:36 2008
+++ php-src/ext/standard/url.c  Tue Jul 29 12:41:58 2008
@@ -15,7 +15,7 @@
    | Author: Jim Winstead <[EMAIL PROTECTED]>                                  
|
    +----------------------------------------------------------------------+
  */
-/* $Id: url.c,v 1.109 2008/07/29 12:36:36 felipe Exp $ */
+/* $Id: url.c,v 1.110 2008/07/29 12:41:58 felipe Exp $ */
 
 #include <stdlib.h>
 #include <string.h>
@@ -420,7 +420,9 @@
        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);
+               if (type == IS_UNICODE) {
+                       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