sesser          Sat Mar  8 09:37:01 2003 EDT

  Modified files:              
    /php4/ext/standard  html.c 
  Log:
  fixing memory leak
  
  
  
Index: php4/ext/standard/html.c
diff -u php4/ext/standard/html.c:1.73 php4/ext/standard/html.c:1.74
--- php4/ext/standard/html.c:1.73       Thu Mar  6 18:07:27 2003
+++ php4/ext/standard/html.c    Sat Mar  8 09:37:01 2003
@@ -18,7 +18,7 @@
    +----------------------------------------------------------------------+
 */
 
-/* $Id: html.c,v 1.73 2003/03/06 23:07:27 ddhill Exp $ */
+/* $Id: html.c,v 1.74 2003/03/08 14:37:01 sesser Exp $ */
 
 #include "php.h"
 #if PHP_WIN32
@@ -840,6 +840,7 @@
        }
 
        replaced = php_escape_html_entities(str, str_len, &len, all, quote_style, 
hint_charset TSRMLS_CC);
+       efree(str);
        RETVAL_STRINGL(replaced, len, 0);
 }
 /* }}} */



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to