Bug #11304 Updated: memory leak
| From: | sniper@php.net | Date: | Mon, 20 Aug 2001 14:40:28 +0000 |
| Subject: | Bug #11304 Updated: memory leak | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-63845@lists.php.net to get a copy of this message | ||
ID: 11304
Updated by: sniper
Reported By: tgagne@efinnet.com
Old Status: Feedback
Status: Closed
Bug Type: DOM XML related
Operating System: RHat 6.2
PHP Version: 4.0.5
New Comment:
No feedback. Reopen if you still have this problem
with PHP 4.0.7 (soon to be released) or with latest CVS
snapshot from http://snaps.php.net/
Side note: The libxml version required now is libxml2-2.4.2
--Jani
Previous Comments:
------------------------------------------------------------------------
[2001-07-17 10:49:21] joey@php.net
This is great. Do you have a test case for this bug?
------------------------------------------------------------------------
[2001-06-06 02:18:52] tgagne@efinnet.com
This (I think) is a new bug with libxml2.so (libxml2-2.3.9-1)
------------------------------------------------------------------------
[2001-06-06 02:15:56] tgagne@efinnet.com
php_domxml.c, line #698
The pointer (content) from xmlNodeGetContent(last); needs to be freed. There's still another
memory leak in domxml but it leaks much slower now. To my version of the file I added:
if (content) {
add_property_stringl(child, "content", (char *) content, strlen(content), 1);
free(content);
}
directly beneath it.
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=11304&edit=1