Otherwise, desc can contain garbage values and segfault trying to close file descriptors that aren't actually there. Fixes #11239.
Otherwise, desc can contain garbage values and segfault trying to close file descriptors that aren't actually there. Fixes #11239.