APItest.xs: Fix mem leak in lexsub test