This leaks when a stream opener proxy opens another stream.

This commit is contained in:
Sara Golemon 2004-04-01 01:07:54 +00:00
parent 72616e6eae
commit 002f7ef393

View File

@ -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;
}