fixed malloc check in tsyrk_amm