GUACAMOLE-362: Fix resource leak in FileInputStream when reading private key.
This commit is contained in:
1 parent
1a7f85ae51
commit
5c0c823913
1 file changed
+1
+1
@@ -60,6 +60,7 @@ public abstract class PrivateKeyGuacamoleProperty implements GuacamoleProperty<P
|
||||
for (int readBytes; (readBytes = keyStreamIn.read(keyBuffer)) != -1;)
|
||||
keyStreamOut.write(keyBuffer, 0, readBytes);
|
||||
|
||||
keyStreamIn.close();
|
||||
final byte[] keyBytes = keyStreamOut.toByteArray();
|
||||
|
||||
// Set up decryption infrastructure
|
||||
|
||||
Reference in new issue
Block a user