mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-04-16 12:06:55 +02:00
fix ANDROID-35: memory leak
This commit is contained in:
parent
01003617cd
commit
dd1b52c7d9
1 changed files with 2 additions and 0 deletions
|
@ -992,6 +992,8 @@ JNIEXPORT jobject JNICALL Java_com_zerotier_sdk_Node_processVirtualNetworkFrame(
|
|||
frameLength,
|
||||
&nextBackgroundTaskDeadline);
|
||||
|
||||
free(localData);
|
||||
|
||||
jlong *outDeadline = (jlong*)env->GetPrimitiveArrayCritical(out_nextBackgroundTaskDeadline, NULL);
|
||||
outDeadline[0] = (jlong)nextBackgroundTaskDeadline;
|
||||
env->ReleasePrimitiveArrayCritical(out_nextBackgroundTaskDeadline, outDeadline, 0);
|
||||
|
|
Loading…
Add table
Reference in a new issue