Add NULL check after malloc() in fortranobject.c
Changed the `goto fail` to a `return PyErr_NoMemory()`
Merge pull request #5043 from chatcannon/fortranobject_malloc

Add NULL check after malloc() in fortranobject.c