Bug #11304 Updated: memory leak

From: Date: Tue, 17 Jul 2001 14:49:22 +0000
Subject: Bug #11304 Updated: memory leak
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-60161@lists.php.net to get a copy of this message
ID: 11304 Updated by: joey Reported By: tgagne@efinnet.com Old Status: Open Status: Feedback Bug Type: DOM XML related Operating System: RHat 6.2 PHP Version: 4.0.5 New Comment: This is great. Do you have a test case for this bug? Previous Comments: ------------------------------------------------------------------------ [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

« previous php.dev (#60161) next »