From: Sara Golemon Date: Thu, 1 Apr 2004 01:07:54 +0000 (+0000) Subject: This leaks when a stream opener proxy opens another stream. X-Git-Tag: php-5.0.0RC2RC1~132 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=002f7ef39379e261af28c5dff68925d317142727;p=php This leaks when a stream opener proxy opens another stream. --- diff --git a/main/streams/streams.c b/main/streams/streams.c index fd67eea27d..fbce8ecfc7 100755 --- a/main/streams/streams.c +++ b/main/streams/streams.c @@ -1633,6 +1633,9 @@ PHPAPI php_stream *_php_stream_open_wrapper_ex(char *path, char *mode, int optio } if (stream) { + if (stream->orig_path) { + pefree(stream->orig_path, persistent); + } copy_of_path = pestrdup(path, persistent); stream->orig_path = copy_of_path; }