title: Memory leak in Java. How to clear list?
body: <p>I have found some list in my source code which has <code>list.add()</code> but not <code>list.remove()</code>. Is it causing a memory leak? I tried <code>list.clear()</code> and <code>list=null</code> but it seems to have no effect.
  What should be done to clear this list? Kindly explain... Thanks in advance.</p>