[bugfix] free memory correctly when using decompositions loaded from file