fixed memleaks when calculating the pseudo-inverse fails
fixed memleaks when calculating the pseudo-inverse fails

CID: 144681,144682,144683,144684,144686,144687

iem-projects/ambix,umlaeute/ambix,iem-projects/ambix,kronihias/libambix,umlaeute/ambix,kronihias/libambix,umlaeute/ambix,iem-projects/ambix