fix leaks in rop search

fixes the leaks found by coverity scan last night.