diff --git a/java/jni/com_zerotierone_sdk_Node.cpp b/java/jni/com_zerotierone_sdk_Node.cpp index 60c53f04e..ebe5611e5 100644 --- a/java/jni/com_zerotierone_sdk_Node.cpp +++ b/java/jni/com_zerotierone_sdk_Node.cpp @@ -297,6 +297,9 @@ JNIEXPORT void JNICALL Java_com_zerotierone_sdk_Node_node_1delete { JniRef *ref = found->second; nodeMap.erase(found); + + ZT1_Node_delete(ref->node); + delete ref; ref = NULL; }