Skip to content

Commit 5941c1d

Browse files
committed
MFH
1 parent 25e7373 commit 5941c1d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

main/fopen_wrappers.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,9 @@ PHPAPI int php_fopen_primary_script(zend_file_handle *file_handle TSRMLS_DC)
304304
SG(request_info).path_translated = filename;
305305
}
306306
}
307+
#if defined(ZTS) && defined(HAVE_GETPWNAM_R) && defined(_SC_GETPW_R_SIZE_MAX)
308+
efree(pwbuf);
309+
#endif
307310
}
308311
} else
309312
#endif

0 commit comments

Comments
 (0)