This function destroys an instance of am_map_t structure which is pointed by map_ptr.
Memory Concerns: Care must be taken that map_ptr was not freed before by calling am_map_destroy or by erroneously calling the system void free (void *) function.