Fixed - FSTCodec memory leak #1927

pull/1907/head
Nikita Koksharov 6 years ago
parent ff4c2f71f2
commit b77fda1e7e

@ -92,6 +92,8 @@ public class FstCodec extends BaseCodec {
throw e; throw e;
} catch (Exception e) { } catch (Exception e) {
throw new IOException(e); throw new IOException(e);
} finally {
config.getStreamCoderFactory().getInput().remove();
} }
} }
}; };
@ -113,6 +115,8 @@ public class FstCodec extends BaseCodec {
} catch (Exception e) { } catch (Exception e) {
out.release(); out.release();
throw new IOException(e); throw new IOException(e);
} finally {
config.getStreamCoderFactory().getOutput().remove();
} }
} }
}; };

Loading…
Cancel
Save