From 647e22bf81a83ba2186ab8fa5fab39b5641c49bc Mon Sep 17 00:00:00 2001 From: Vasily Litvinov Date: Wed, 9 Apr 2014 19:36:34 +0400 Subject: [PATCH] Fixed memory leak (which triggered asserts in tests) --- src/jnienv.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/jnienv.cpp b/src/jnienv.cpp index 0debe43d1f..107c4a697b 100644 --- a/src/jnienv.cpp +++ b/src/jnienv.cpp @@ -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);