From 476e7aca0eb3910786a39670f5b8e08c4e60283f Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Sun, 28 Aug 2016 11:13:07 +0100 Subject: coverity#1326473 Resource leak on an exceptional path Change-Id: I22edbc104164cfd598cfa52e89a112415e63b2c7 --- xmerge/source/bridge/java/XMergeBridge.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'xmerge/source/bridge') diff --git a/xmerge/source/bridge/java/XMergeBridge.java b/xmerge/source/bridge/java/XMergeBridge.java index 0f0448343735..156bc5e31615 100644 --- a/xmerge/source/bridge/java/XMergeBridge.java +++ b/xmerge/source/bridge/java/XMergeBridge.java @@ -503,7 +503,10 @@ public class XMergeBridge { } finally{ if (newxos != null){ - newxos.flush(); + try { + newxos.flush(); + } catch (IOException e) { + } newxos.close(); } xis.close(); -- cgit