Initialize variables that we attempt to free later.