add alignment to free_mem