Here are two more:
Avoid two more leaks.
* src/capabilities.c (virCapabilitiesFree): Free host.migrateTrans.
(virCapabilitiesFreeGuest): Free arch.name member.
Signed-off-by: Jim Meyering <meyering(a)redhat.com>
---
src/capabilities.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/src/capabilities.c b/src/capabilities.c
index 2544bd3..bedd445 100644
--- a/src/capabilities.c
+++ b/src/capabilities.c
@@ -91,6 +91,7 @@ virCapabilitiesFreeGuest(virCapsGuestPtr guest)
int i;
free(guest->ostype);
+ free(guest->arch.name);
free(guest->arch.defaultInfo.emulator);
free(guest->arch.defaultInfo.loader);
for (i = 0 ; i < guest->arch.defaultInfo.nmachines ; i++)
@@ -130,6 +131,10 @@ virCapabilitiesFree(virCapsPtr caps) {
virCapabilitiesFreeHostNUMACell(caps->host.numaCell[i]);
free(caps->host.numaCell);
+ for (i = 0 ; i < caps->host.nmigrateTrans ; i++)
+ free(caps->host.migrateTrans[i]);
+ free(caps->host.migrateTrans);
+
free(caps->host.arch);
free(caps);
}
--
1.5.4.3.366.g55277