]> granicus.if.org Git - php/commitdiff
fixing memory leak
authorStefan Esser <sesser@php.net>
Sat, 8 Mar 2003 14:37:01 +0000 (14:37 +0000)
committerStefan Esser <sesser@php.net>
Sat, 8 Mar 2003 14:37:01 +0000 (14:37 +0000)
ext/standard/html.c

index fe3b9ad9408b8dd8379c79bf90cd061100425233..6db62114c198fd72ffdb470c26834c4af200c2c1 100644 (file)
@@ -840,6 +840,7 @@ static void php_html_entities(INTERNAL_FUNCTION_PARAMETERS, int all)
        }
 
        replaced = php_escape_html_entities(str, str_len, &len, all, quote_style, hint_charset TSRMLS_CC);
+       efree(str);
        RETVAL_STRINGL(replaced, len, 0);
 }
 /* }}} */