[PATCH 26/39] virResctrlGetCacheInfo: Restrict variable scope and use automatic freeing