git-svn-id: https://svn.apache.org/repos/asf/hadoop/hdfs/trunk@809028 13f79535-47bb-0310-9956-ffa450edef68
@@ -165,11 +165,10 @@ public class ListPathsServlet extends DfsServlet {
}
catch(RemoteException re) {re.writeXml(p, doc);}
- } finally {
if (doc != null) {
doc.endDocument();
-
+ } finally {
if (out != null) {
out.close();