Signed-off-by: Daniel Henrique Barboza <danielhb413(a)gmail.com>
---
src/util/virhostcpu.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/util/virhostcpu.c b/src/util/virhostcpu.c
index 39bbcf8ca8..3023bca831 100644
--- a/src/util/virhostcpu.c
+++ b/src/util/virhostcpu.c
@@ -1089,7 +1089,7 @@ virHostCPUGetMap(unsigned char **cpumap,
unsigned int *online,
unsigned int flags)
{
- virBitmapPtr cpus = NULL;
+ g_autoptr(virBitmap) cpus = NULL;
int ret = -1;
int dummy;
@@ -1111,7 +1111,6 @@ virHostCPUGetMap(unsigned char **cpumap,
cleanup:
if (ret < 0 && cpumap)
VIR_FREE(*cpumap);
- virBitmapFree(cpus);
return ret;
}
--
2.26.2