diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-08-19 11:47:23 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-08-19 13:00:44 +0100 |
commit | 21b0cbfdc531379cfdd8359941ac6c6a4b8b66fd (patch) | |
tree | 4bc2cba47a2295a4624e93433adbb0e4767dbb44 /scripting | |
parent | ccc355bc4e4368df51fbec33d6d0bcf035bffcca (diff) |
coverity#1371367 Resource leak on an exceptional path
Change-Id: I4da5f6d427e8132d62860b46cb4def88b8afb25d
Diffstat (limited to 'scripting')
-rw-r--r-- | scripting/java/com/sun/star/script/framework/provider/beanshell/ScriptEditorForBeanShell.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scripting/java/com/sun/star/script/framework/provider/beanshell/ScriptEditorForBeanShell.java b/scripting/java/com/sun/star/script/framework/provider/beanshell/ScriptEditorForBeanShell.java index c43200744e15..c832e6ed691f 100644 --- a/scripting/java/com/sun/star/script/framework/provider/beanshell/ScriptEditorForBeanShell.java +++ b/scripting/java/com/sun/star/script/framework/provider/beanshell/ScriptEditorForBeanShell.java @@ -344,6 +344,9 @@ public class ScriptEditorForBeanShell implements ScriptEditor, ActionListener { if (fos != null) { try { fos.flush(); + } catch (IOException ignore) { + } + try { fos.close(); } catch (IOException ignore) { } |