free_alloc() simplify

Deleted one code level. Separate if blocks