Plug a memory leak in GFD_NewDir()
Plug a leak in GRE_Save()