[fix] manual_seed{_all}: mem leak (#62534)
Summary:
Fixes: https://github.com/pytorch/pytorch/issues/55768
Pull Request resolved: https://github.com/pytorch/pytorch/pull/62534
Reviewed By: nairbv
Differential Revision: D30103294
Pulled By: ezyang
fbshipit-source-id: d871ae869314dfd2d27544a51107ab752abfe452