Fix memory leak in boxes.

Array elements where free'ed but not the array itself.