Change-Id: I6ba8235a01b54ba2cee541bad44f8f1266d7ba3c
Issue-Id:VFC-375
Signed-off-by: luxin <luxin7@huawei.com>
             is.close();
             fileout.flush();
             fileout.close();
+            client.close();
             status = Constant.DOWNLOADCSAR_SUCCESS;
 
         } catch(Exception e) {
 
             if(fileContent != null) {
                 jsonObject = JSONObject.fromObject(fileContent).getJSONObject("vnfdIds");
             }
-            if(ins != null) {
-                ins.close();
-            }
-            if(bins != null) {
-                bins.close();
-            }
+            ins.close();
+            bins.close();
         } catch(Exception e) {
             LOG.error(fileName + " read error!", e);
         } finally {