netty5/transport-native-epoll/src
Clebert Suconic 70e3d17620 fixing small leak on exception on the transport-epoll-native allocation
Motivation:

the JNI function ThrowNew won't release any allocated memory.
The method exceptionMessage is allocating a new string concatenating 2 constant strings
What is creating a small leak in case of these exceptions are happening.

Modifications:

Added new methods that will use exceptionMessage and free resources accordingly.
I am also removing the inline definition on these methods as they could be reused by
other added modules (e.g. libaio which should be coming soon)

Result:

No more leaks in case of failures.
2015-05-31 09:36:19 +02:00
..
main fixing small leak on exception on the transport-epoll-native allocation 2015-05-31 09:36:19 +02:00
test/java/io/netty/channel/epoll [#3785] Correctly handle connection refused with native transport 2015-05-27 13:38:50 +02:00