#39105 [Opn->Fbk]: Possible memory leak in estrndup()

From: Date: Tue, 10 Oct 2006 10:45:27 +0000
Subject: #39105 [Opn->Fbk]: Possible memory leak in estrndup()
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-103351@lists.php.net to get a copy of this message
ID: 39105 Updated by: tony2001@php.net Reported By: ivoras at yahoo dot com -Status: Open +Status: Feedback -Bug Type: Scripting Engine problem +Bug Type: Filesystem function related Operating System: FreeBSD PHP Version: 5.1.6 New Comment: Please try using this CVS snapshot: http://snaps.php.net/php5.2-latest.tar.gz For Windows: http://snaps.php.net/win32/php5.2-win32-latest.zip Previous Comments: ------------------------------------------------------------------------ [2006-10-10 10:15:13] ivoras at yahoo dot com Description: ------------ PHP compiled with debugging reports memory leaks. It technically really IS a memory leak in the script code, but should that influence the scripting engine? Reproduce code: --------------- <?php $f = fopen('aaa', 'w+'); fwrite($f, "bcde\n"); ?> Expected result: ---------------- A working program Actual result: -------------- [Tue Oct 10 12:10:55 2006] Script: 'bla.php' /usr/ports/lang/php5/work/php-5.1.6/main/main.c(1708) : Freeing 0x085ACCA4 (26 bytes), script=bla.php === Total 1 memory leaks detected === ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=39105&edit=1

« previous php.bugs (#103351) next »