From: Felipe Pena Date: Tue, 29 Jul 2008 12:41:58 +0000 (+0000) Subject: - Fix the fix X-Git-Tag: BEFORE_HEAD_NS_CHANGE~974 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=886087b7019d720c107740f2524d8ce7f38196d1;p=php - Fix the fix --- diff --git a/ext/standard/url.c b/ext/standard/url.c index e8afc226cc..d84524f880 100644 --- a/ext/standard/url.c +++ b/ext/standard/url.c @@ -420,7 +420,9 @@ PHP_FUNCTION(parse_url) 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; }