Skip to content

Commit 20467dd

Browse files
committed
fix orphan temp file
1 parent 2ba0da5 commit 20467dd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/Service/PackService.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,7 @@ public function packChunk(RestoringPoint $point, RestoringChunk $chunk): void {
214214
$temp = $this->wrapPackChunkCompress($point, $temp);
215215
$parts = $this->wrapPackExplode($temp);
216216
$parts = $this->wrapPackEncrypt($point, $parts);
217+
217218
$this->wrapStoreParts($point, $chunk, $parts);
218219
}
219220

@@ -309,6 +310,8 @@ private function wrapPackExplode(string $filename): array {
309310
throw $t;
310311
}
311312

313+
unlink($filename);
314+
312315
return $parts;
313316
}
314317

0 commit comments

Comments
 (0)