Commit 7ae5ab5696d1810eeb4583ef77145edccdb41308

Carlos Martín Nieto 2012-10-15T16:35:10

Fix leak in the tests Also introduce the slective ref trimming promised but also missed in the previous commit.