Skip to content

Commit

Permalink
release memory allocated by JVMTI/JNI. Closes #26. (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
bsideup authored May 5, 2019
1 parent 12da449 commit 6046ba6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions native-agent/src/main/cpp/agent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,10 @@ extern "C" JNIEXPORT void JNICALL Java_reactor_blockhound_BlockHoundRuntime_mark
el.allowed = allowed == JNI_TRUE;
hooks[methodId] = el;
}
jvmti->Deallocate((unsigned char*) methodName);
}
env->ReleaseStringUTFChars(hookMethodName, hookMethodChars);
jvmti->Deallocate((unsigned char*) methodIds);
}

extern "C" JNIEXPORT jboolean JNICALL Java_reactor_blockhound_BlockHoundRuntime_isBlocking(JNIEnv *env) {
Expand Down

0 comments on commit 6046ba6

Please sign in to comment.