diff options
author | Marcus Boerger <helly@php.net> | 2002-11-23 01:24:08 +0000 |
---|---|---|
committer | Marcus Boerger <helly@php.net> | 2002-11-23 01:24:08 +0000 |
commit | 517af84b0aeb98c742c94e3379f7650a33e5dd4b (patch) | |
tree | cf127f9e6a7c019b31ab925f1419fccc6b117a95 | |
parent | e9047df607fafc5964e50ea3fc21f6ddd459ba15 (diff) | |
download | php-git-517af84b0aeb98c742c94e3379f7650a33e5dd4b.tar.gz |
MFB: Fix memleak in debug mode
-rwxr-xr-x | main/streams.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/streams.c b/main/streams.c index 7a1307c33a..89288f52e8 100755 --- a/main/streams.c +++ b/main/streams.c @@ -2317,7 +2317,7 @@ PHPAPI php_stream *_php_stream_open_wrapper_ex(char *path, char *mode, int optio return stream; case PHP_STREAM_RELEASED: #if ZEND_DEBUG - newstream->__orig_path = copy_of_path; + newstream->__orig_path = estrdup(copy_of_path); #endif return newstream; default: |