mirror of
https://github.com/Febbweiss/logstash-forwarder-java.git
synced 2026-03-04 22:25:39 +00:00
Corrected memory leak issue #4.
This commit is contained in:
@@ -157,6 +157,13 @@ public class FileState {
|
||||
public void setOldFileState(FileState oldFileState) {
|
||||
this.oldFileState = oldFileState;
|
||||
}
|
||||
|
||||
public void deleteOldFileState() {
|
||||
try {
|
||||
oldFileState.getRandomAccessFile().close();
|
||||
oldFileState = null;
|
||||
} catch(Exception e) {}
|
||||
}
|
||||
|
||||
public Event getFields() {
|
||||
return fields;
|
||||
|
||||
Reference in New Issue
Block a user