fortran deallocates automatically when var gets out of scope