Fix memory leaks with -x in the pbf parser