fix occasional use of freed memory

git-svn-id: https://svn.salilab.org/imp/trunk@17107 e91f8c7b-0e32-4433-a9ac-4502d39a4eab