Fixed memory leak

This commit is contained in:
M66B 2019-08-04 10:20:44 +02:00
parent aadb1e44b4
commit 82bb4a4ecd
1 changed files with 2 additions and 0 deletions

View File

@ -387,6 +387,8 @@ Java_eu_faircode_netguard_Util_is_1numeric_1address(JNIEnv *env, jclass type, js
else
numeric = (jboolean) (result != NULL);
freeaddrinfo(result);
(*env)->ReleaseStringUTFChars(env, ip_, ip);
ng_delete_alloc(ip, __FILE__, __LINE__);
return numeric;