Permalink
Browse files

Merge pull request #2 from thefringeninja/master

files that are fopened should be fclosed.
  • Loading branch information...
2 parents 623611d + e9e64a4 commit 8fee64530989af5e52b93fc9ac2ce51de6fc2abf @gpbmike committed Apr 10, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 yuicompressor.php
View
@@ -59,6 +59,7 @@ function compress()
$file = $this->TEMP_FILES_DIR . '/' . $input_hash . '.txt';
$fh = fopen($file, 'w') or die("Can't create new file");
fwrite($fh, $this->string);
+ fclose($fh);
// start with basic command
$cmd = "java -Xmx32m -jar " . $this->JAR_PATH . ' ' . $file . " --charset UTF-8";

0 comments on commit 8fee645

Please sign in to comment.