relative_search.c: cleanup