There is indeed no need to keep track of it (it's global within libsigrok).