Permalink
Browse files

close finfo. fix memory leak

  • Loading branch information...
1 parent b48069d commit 542a1db1bda502e38493551b2883a87d7aa72643 @aleemb aleemb committed Nov 26, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/cli.php
View
1 src/cli.php
@@ -91,6 +91,7 @@ function tool($argc, $argv) {
if (function_exists('finfo_open')) {
$finfo = finfo_open(FILEINFO_MIME_TYPE);
$mime_type = finfo_file($finfo, $this->in);
+ finfo_close($finfo);
}
else {
$mime_type = mime_content_type($this->in);

0 comments on commit 542a1db

Please sign in to comment.