mirror of
https://github.com/corda/corda.git
synced 2025-01-04 04:04:27 +00:00
fix invalid size calculation in ReleaseStringUTFChars
This commit is contained in:
parent
d414fd4c7b
commit
204bbc134d
@ -219,7 +219,7 @@ ReleaseStringUTFChars(Thread* t, jstring s, const char* chars)
|
||||
{
|
||||
ENTER(t, Thread::ActiveState);
|
||||
|
||||
t->m->heap->free(chars, stringLength(t, *s) + 1);
|
||||
t->m->heap->free(chars, stringUTFLength(t, *s) + 1);
|
||||
}
|
||||
|
||||
void JNICALL
|
||||
|
Loading…
Reference in New Issue
Block a user