summaryrefslogtreecommitdiff
path: root/xmlsecurity
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-05-03 15:18:08 +0200
committerNoel Grandin <noel@peralex.com>2013-05-06 11:45:56 +0200
commit402c8f5f1efd053cc69556d63999955b3af4f41d (patch)
tree6f5dd611fa39962511feeaf1802d3776217f84fe /xmlsecurity
parent7cba598a7ddcf02771ed31c8d8fce6f7e02ef715 (diff)
Java cleanup, close file handles when done with them
Change-Id: I79e6e0b8f53ae6f232c34aa8e833853d2ec24cf0
Diffstat (limited to 'xmlsecurity')
-rw-r--r--xmlsecurity/test_docs/tools/httpserv/src/httpserv/Main.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/xmlsecurity/test_docs/tools/httpserv/src/httpserv/Main.java b/xmlsecurity/test_docs/tools/httpserv/src/httpserv/Main.java
index 8a604fad0310..a9bd3cee9977 100644
--- a/xmlsecurity/test_docs/tools/httpserv/src/httpserv/Main.java
+++ b/xmlsecurity/test_docs/tools/httpserv/src/httpserv/Main.java
@@ -142,6 +142,7 @@ class MyHandler implements HttpHandler {
byte[] data = new byte[(int) fileRequest.length()];
FileInputStream fr = new FileInputStream(fileRequest);
int count = fr.read(data);
+ fr.close();
//set the Content-type header
Headers h = xchange.getResponseHeaders();