summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Esser <sesser@php.net>2003-03-08 14:37:01 +0000
committerStefan Esser <sesser@php.net>2003-03-08 14:37:01 +0000
commit76c427fd0553b4649aab5a534c0452867cc38b41 (patch)
tree71d64fba82718aeaffa6c85058b1bc0def24ff57
parent8f54b23faf114dc3d66e36cfcd9af6917886af04 (diff)
downloadphp-git-76c427fd0553b4649aab5a534c0452867cc38b41.tar.gz
fixing memory leak
-rw-r--r--ext/standard/html.c1
1 files changed, 1 insertions, 0 deletions
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);
}
/* }}} */