File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -2219,7 +2219,6 @@ PHPAPI php_stream *_php_stream_open_wrapper_ex(const char *path, const char *mod
2219
2219
int persistent = options & STREAM_OPEN_PERSISTENT ;
2220
2220
zend_string * path_str = NULL ;
2221
2221
zend_string * resolved_path = NULL ;
2222
- char * copy_of_path = NULL ;
2223
2222
2224
2223
if (opened_path ) {
2225
2224
if (options & STREAM_OPEN_FOR_ZEND_STREAM ) {
@@ -2296,8 +2295,7 @@ PHPAPI php_stream *_php_stream_open_wrapper_ex(const char *path, const char *mod
2296
2295
if (stream -> orig_path ) {
2297
2296
pefree (stream -> orig_path , persistent );
2298
2297
}
2299
- copy_of_path = pestrdup (path , persistent );
2300
- stream -> orig_path = copy_of_path ;
2298
+ stream -> orig_path = pestrdup (path , persistent );
2301
2299
#if ZEND_DEBUG
2302
2300
stream -> open_filename = __zend_orig_filename ? __zend_orig_filename : __zend_filename ;
2303
2301
stream -> open_lineno = __zend_orig_lineno ? __zend_orig_lineno : __zend_lineno ;
@@ -2356,11 +2354,6 @@ PHPAPI php_stream *_php_stream_open_wrapper_ex(const char *path, const char *mod
2356
2354
}
2357
2355
}
2358
2356
php_stream_tidy_wrapper_error_log (wrapper );
2359
- #if ZEND_DEBUG
2360
- if (stream == NULL && copy_of_path != NULL ) {
2361
- pefree (copy_of_path , persistent );
2362
- }
2363
- #endif
2364
2357
if (resolved_path ) {
2365
2358
zend_string_release_ex (resolved_path , 0 );
2366
2359
}
You can’t perform that action at this time.
0 commit comments