fix memory leaks in init_pdb7_root_stream()
fix some memory leaks and logic problem
PDB honors rabin2 -B and -r