Added FREE_ALLOC macro (to free cfg buffers malloced with get_alloc). Removed definition of SAVE_MEMORY (duplicate pointers make freeing difficult).