Skip to content

Commit

Permalink
fix storage leak
Browse files Browse the repository at this point in the history
  • Loading branch information
blaine@wemiller.com committed Jul 21, 2024
1 parent 15f1bb6 commit edf6f45
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Utilities/Logger.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ public static function saveLogs(string $passphrase, string $type, array $logs, $
}

ftruncate($handler, 0);
rewind($handler);
fwrite($handler, AES::Encrypt($logs, $passphrase));
flock($handler, LOCK_UN);
fclose($handler);
Expand Down

0 comments on commit edf6f45

Please sign in to comment.