diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-08-28 11:13:07 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-08-28 13:38:24 +0100 |
commit | 476e7aca0eb3910786a39670f5b8e08c4e60283f (patch) | |
tree | 9281b56c7fe7abefa135ffe985625e1f3998da2d /xmerge/source/bridge | |
parent | 3ad3365c4f7ba981024a2de7447faa5c73494c18 (diff) |
coverity#1326473 Resource leak on an exceptional path
Change-Id: I22edbc104164cfd598cfa52e89a112415e63b2c7
Diffstat (limited to 'xmerge/source/bridge')
-rw-r--r-- | xmerge/source/bridge/java/XMergeBridge.java | 5 |
1 files changed, 4 insertions, 1 deletions
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(); |