poll_handle: memory leak fixed