Added mising free and matrix copy