/* Resolve the address and return the name */
result = cpnet_getHostByAddr (env, addr, hostname, sizeof (hostname));
+ cpnet_freeAddress (env, addr);
if (result != CPNATIVE_OK)
{
JCL_ThrowException (env, UNKNOWN_HOST_EXCEPTION,
}
result = cpnet_aton (env, hostname, &address);
+ (*env)->ReleaseStringUTFChars (env, host, hostname);
if (result != CPNATIVE_OK)
{
JCL_ThrowException (env, UNKNOWN_HOST_EXCEPTION, "Internal Error");