Maybe outside the US, but we have Good Samaritan laws at the federal level to expedite charitable donations from corporations. Any rules you may have encountered, in the US, were put in place voluntarily by the company.
Source: Food Safety Manager that went to war over this exact issue with a pizza hut franchise and won.

There's still some good in him.