logback-gelf icon indicating copy to clipboard operation
logback-gelf copied to clipboard

GelfSender is not closing streams on exception

Open kringol opened this issue 6 years ago • 0 comments

https://github.com/pukkaone/logback-gelf/blob/73a6c972ecd07d979446e894c3b289e68a5ef404/src/main/java/com/github/pukkaone/gelf/protocol/GelfSender.java#L17

As it is not using try-with-resources or properly handling close on finally() there is a risk of memory leak on "off-heap" memory. See: http://www.evanjones.ca/java-native-leak-bug.html

kringol avatar Mar 08 '18 05:03 kringol