mem_cleanup function

Clean up Search Analysis Objects to Free Memory