Fixed leak test
Fixed bug 960216