Signed-off-by: Matt Coleman <matt@datto.com>
Reviewed-by: Laine Stump <laine@redhat.com>
int count = 0;
int vcpu_number;
hypervPrivate *priv = domain->conn->privateData;
- Win32_PerfRawData_HvStats_HyperVHypervisorVirtualProcessor *vproc = NULL;
+ g_autoptr(Win32_PerfRawData_HvStats_HyperVHypervisorVirtualProcessor) vproc = NULL;
/* Hyper-V does not allow setting CPU affinity: all cores will be used */
if (cpumaps && maplen > 0)
count++;
}
- hypervFreeObject((hypervObject *)vproc);
-
return count;
}