Skip to content

Commit e49d7a9

Browse files
committed
Small Improvement
1 parent 43754a1 commit e49d7a9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/PhpSpreadsheet/Shared/XMLWriter.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ public function __construct(int $temporaryStorage = self::STORAGE_MEMORY, ?strin
3939
if (empty($this->tempFileName) || $this->openUri($this->tempFileName) === false) {
4040
// Fallback to memory...
4141
$this->openMemory();
42+
if ($this->tempFileName != '') {
43+
@unlink($this->tempFileName);
44+
}
4245
$this->tempFileName = '';
4346
}
4447
}

0 commit comments

Comments
 (0)