From 21b0cbfdc531379cfdd8359941ac6c6a4b8b66fd Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Fri, 19 Aug 2016 11:47:23 +0100 Subject: coverity#1371367 Resource leak on an exceptional path Change-Id: I4da5f6d427e8132d62860b46cb4def88b8afb25d --- .../script/framework/provider/beanshell/ScriptEditorForBeanShell.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'scripting') 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) { } -- cgit