class List {
MemoryLeak mem;
List next;
}
class MemoryLeak {
static List top;
char[] memory = newchar[100000];
publicstaticvoid main(String[] args) {
for (int i = 0; i < 100000; i++) {
List temp = new List();
temp.mem = new MemoryLeak();
temp.next = top;
top = temp;
}
}
}