Fix a CUDA memory leak in MultiLabelMarginCriterion error checking. (#30767)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/30767
Restacked version of: https://github.com/pytorch/pytorch/pull/30733
Test Plan: Imported from OSS
Differential Revision: D18821553
Pulled By: gchanan
fbshipit-source-id: 8bf0365ce54dd2f07a5d6d0937332d0baf75b350