From 002f7ef39379e261af28c5dff68925d317142727 Mon Sep 17 00:00:00 2001 From: Sara Golemon Date: Thu, 1 Apr 2004 01:07:54 +0000 Subject: [PATCH] This leaks when a stream opener proxy opens another stream. --- main/streams/streams.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main/streams/streams.c b/main/streams/streams.c index fd67eea27d2..fbce8ecfc75 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; }