Skip to content
This repository was archived by the owner on Jan 31, 2020. It is now read-only.

Commit f4303c4

Browse files
committed
Merge pull request #166 from philippe-jung/philippe-jung-7629
Ref #7629
2 parents 49cf0ae + 3fc1e66 commit f4303c4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/File/MimeType.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -385,6 +385,7 @@ public function isValid($value, $file = null)
385385
$this->type = null;
386386
if (! empty($this->finfo)) {
387387
$this->type = finfo_file($this->finfo, $file);
388+
finfo_close($this->finfo);
388389
}
389390
}
390391

0 commit comments

Comments
 (0)