mirror of https://github.com/M66B/NetGuard.git
Fixed memory leak
This commit is contained in:
parent
aadb1e44b4
commit
82bb4a4ecd
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue