Fixed memory leak (which triggered asserts in tests)

This commit is contained in:
Vasily Litvinov 2014-04-09 19:36:34 +04:00
parent 5828ef1d46
commit 647e22bf81

View File

@ -3958,6 +3958,8 @@ JNI_CreateJavaVM(Machine** m, Thread** t, void* args)
(s, h, bf, af, p, c, properties, propertyCount, arguments, a->nOptions,
stackLimit);
h->free(properties, sizeof(const char*) * propertyCount);
*t = p->makeThread(*m, 0, 0);
enter(*t, Thread::ActiveState);