Fix a crash that occurred when destroying subclasses of :class:`MemoryError`. Patch by Pablo Galindo.