]> granicus.if.org Git - php/commitdiff
MFB: Fix memleak in debug mode
authorMarcus Boerger <helly@php.net>
Sat, 23 Nov 2002 01:24:08 +0000 (01:24 +0000)
committerMarcus Boerger <helly@php.net>
Sat, 23 Nov 2002 01:24:08 +0000 (01:24 +0000)
main/streams.c

index 7a1307c33a96b1e97a2fab9d7da0f495be2c1f52..89288f52e80bc347ece2fc1d303f335503619227 100755 (executable)
@@ -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: