Merge "Fix reduce_allocation()."