diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-02-05 20:44:11 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-02-05 20:44:11 +0000 |
commit | 0ccf596a703d66bc120d1b4699c06b0d902d10ac (patch) | |
tree | 4a34e09973e1700883c9ff2449df77de60c2834f | |
parent | e0cba2a0a837b0d53e813abef3a379b737122c67 (diff) |
coverity#1351880 Resource leak
and
coverity#1351881 Resource leak
Change-Id: Ifdbff9d164f3b8b2ce5f59b6e18e6744202d0184
-rw-r--r-- | qadevOOo/runner/helper/APIDescGetter.java | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/qadevOOo/runner/helper/APIDescGetter.java b/qadevOOo/runner/helper/APIDescGetter.java index d7a672801a07..0de81db1779b 100644 --- a/qadevOOo/runner/helper/APIDescGetter.java +++ b/qadevOOo/runner/helper/APIDescGetter.java @@ -631,6 +631,15 @@ public class APIDescGetter extends DescGetter theEntry.SubEntryCount = subEntries != null ? subEntries.length : 0; theEntry.SubEntries = subEntries; + try + { + csvFile.close(); + } + catch (java.io.IOException ioe) + { + System.out.println("Exception while closing csvFile"); + } + return theEntry; } @@ -715,6 +724,15 @@ public class APIDescGetter extends DescGetter DescEntry[] subEntries = getSubEntries(csvFile, aEntry); + try + { + csvFile.close(); + } + catch (java.io.IOException ioe) + { + System.out.println("Exception while closing csvFile"); + } + aEntry.SubEntryCount = subEntries != null ? subEntries.length : 0; aEntry.SubEntries = subEntries; |