std:std.resource.SafeDiscard
Safely discards a resource.
Invoke Resource.Discard on the given resource r only if r is non-null.
r