handle seek address
removed a memory leak