Free the memory associated with the trace descriptor of dropped JIT work orders.
diff --git a/vm/compiler/Compiler.c b/vm/compiler/Compiler.c
index 705333b..e01ca89 100644
--- a/vm/compiler/Compiler.c
+++ b/vm/compiler/Compiler.c
@@ -62,7 +62,12 @@
bool result = true;
if (dvmTryLockMutex(&gDvmJit.compilerLock)) {
- return false; // Couldn't aquire the lock
+ /*
+ * Make sure the memory associated with the info pointer is freed for
+ * dropped work orders.
+ */
+ free(info);
+ return false; // Couldn't acquire the lock
}
/*