Fix another couple of  memory errors.