We cannot set garray to NULL. it is dynamically allocated.
Also, we can't free it because later we may have to restore it!!