Correctly free source pointer when realloc(...) fails (#488)
Correctly free source pointer when realloc(...) fails (#488)

Motivation:

When realloc(...) fails and so return NULL we need to ensure we free the original (source) pointer to not leak memory.

Modifications:

Correctly call free(...) when realloc(...) fails.

Result:

No more memory leak when realloc fails.
netty/netty-tcnative,netty/netty-tcnative,netty/netty-tcnative,netty/netty-tcnative