diff options
-rwxr-xr-x | ext/spl/spl_directory.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/spl/spl_directory.c b/ext/spl/spl_directory.c index 27bac2e05f..1b122af5f4 100755 --- a/ext/spl/spl_directory.c +++ b/ext/spl/spl_directory.c @@ -323,7 +323,7 @@ static spl_filesystem_object * spl_filesystem_object_create_info(spl_filesystem_ if (!file_path || !file_path_len) { #if defined(PHP_WIN32) zend_throw_exception_ex(spl_ce_RuntimeException, 0 TSRMLS_CC, "Cannot create SplFileInfo for empty path"); - if (file_path && !use_copy) { + if (file_path && !use_copy) { efree(file_path); } return NULL; |