diff --git a/phpseclib/Net/SCP.php b/phpseclib/Net/SCP.php index 3d2462c3..34796231 100644 --- a/phpseclib/Net/SCP.php +++ b/phpseclib/Net/SCP.php @@ -195,7 +195,6 @@ class Net_SCP $fp = @fopen($data, 'rb'); if (!$fp) { - fclose($fp); return false; } $size = filesize($data);