Line the baking pan with nonstick foil or parchment paper, or grease it with cooking spray, butter, or a neutral oil to keep the fudge from sticking. Butter is best.