Simpler LVM handling. Fix a memory leak.