Fix a findbugs problem

Review by: rjrjr@google.com

git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@7935 8db76d5a-ed1c-0410-87a9-c151d255dfc7
diff --git a/bikeshed/src/com/google/gwt/requestfactory/server/RequestFactoryServlet.java b/bikeshed/src/com/google/gwt/requestfactory/server/RequestFactoryServlet.java
index 6347d2b..04dd062 100644
--- a/bikeshed/src/com/google/gwt/requestfactory/server/RequestFactoryServlet.java
+++ b/bikeshed/src/com/google/gwt/requestfactory/server/RequestFactoryServlet.java
@@ -210,12 +210,16 @@
     int contentLength = request.getContentLength();
     byte contentBytes[] = new byte[contentLength];
     BufferedInputStream bis = new BufferedInputStream(request.getInputStream());
-    int readBytes = 0;
-    while (bis.read(contentBytes, readBytes, contentLength - readBytes) > 0) {
-      // read the contents
+    try {
+      int readBytes = 0;
+      while (bis.read(contentBytes, readBytes, contentLength - readBytes) > 0) {
+        // read the contents
+      }
+      // TODO: encoding issues?
+      return new String(contentBytes);
+    } finally {
+      bis.close();
     }
-    // TODO: encoding issues?
-    return new String(contentBytes);
   }
 
   /**