pollita Wed Mar 31 20:07:54 2004 EDT
Modified files:
/php-src/main/streams streams.c
Log:
This leaks when a stream opener proxy opens another stream.
http://cvs.php.net/diff.php/php-src/main/streams/streams.c?r1=1.53&r2=1.54&ty=u
Index: php-src/main/streams/streams.c
diff -u php-src/main/streams/streams.c:1.53 php-src/main/streams/streams.c:1.54
--- php-src/main/streams/streams.c:1.53 Wed Mar 31 18:48:59 2004
+++ php-src/main/streams/streams.c Wed Mar 31 20:07:54 2004
@@ -19,7 +19,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: streams.c,v 1.53 2004/03/31 23:48:59 pollita Exp $ */
+/* $Id: streams.c,v 1.54 2004/04/01 01:07:54 pollita Exp $ */
#define _GNU_SOURCE
#include "php.h"
@@ -1633,6 +1633,9 @@
}
if (stream) {
+ if (stream->orig_path) {
+ pefree(stream->orig_path, persistent);
+ }
copy_of_path = pestrdup(path, persistent);
stream->orig_path = copy_of_path;
}
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php