fixed memory leak in aacgmlib.c
minor changes