mirror of
https://github.com/php/php-src.git
synced 2024-09-23 19:07:26 +00:00
This leaks when a stream opener proxy opens another stream.
This commit is contained in:
parent
72616e6eae
commit
002f7ef393
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user