From: Stefan Esser Date: Sat, 8 Mar 2003 14:37:01 +0000 (+0000) Subject: fixing memory leak X-Git-Tag: RELEASE_0_5~555 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=76c427fd0553b4649aab5a534c0452867cc38b41;p=php fixing memory leak --- diff --git a/ext/standard/html.c b/ext/standard/html.c index fe3b9ad940..6db62114c1 100644 --- a/ext/standard/html.c +++ b/ext/standard/html.c @@ -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); } /* }}} */