Fix memleak in search manual test. CID 1202410 and 1202411