diff --git a/core/src/main/java/org/teavm/runtime/GC.java b/core/src/main/java/org/teavm/runtime/GC.java index c7fc2fbf6..a1b8e4747 100644 --- a/core/src/main/java/org/teavm/runtime/GC.java +++ b/core/src/main/java/org/teavm/runtime/GC.java @@ -212,6 +212,7 @@ public final class GC { if (size <= ptr.value.size) { return true; } + ptr = Structure.add(FreeChunkHolder.class, ptr, 1); } return false; }