]> granicus.if.org Git - php/commitdiff
This leaks when a stream opener proxy opens another stream.
authorSara Golemon <pollita@php.net>
Thu, 1 Apr 2004 01:07:54 +0000 (01:07 +0000)
committerSara Golemon <pollita@php.net>
Thu, 1 Apr 2004 01:07:54 +0000 (01:07 +0000)
main/streams/streams.c

index fd67eea27d24896874196ef3c018fe67a052ed86..fbce8ecfc75a4b3854651bf9e245b3bea53e5dfe 100755 (executable)
@@ -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;
        }