[libvirt] [libvirt-php][PATCH 6/7] installation_get_xml: Resolve couple of memleaks
Michal Privoznik
mprivozn at redhat.com
Thu Dec 7 09:23:01 UTC 2017
There are still some, but it's definitely better now.
Signed-off-by: Michal Privoznik <mprivozn at redhat.com>
---
src/libvirt-php.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/libvirt-php.c b/src/libvirt-php.c
index 307412e..1525834 100644
--- a/src/libvirt-php.c
+++ b/src/libvirt-php.c
@@ -2411,6 +2411,8 @@ char *installation_get_xml(virConnectPtr conn, char *name, int memMB,
(domain_flags & DOMAIN_FLAG_SOUND_AC97 ? "<sound model='ac97'/>\n" : ""));
}
+ VIR_FREE(tmp);
+ VIR_FREE(arch);
if (rv < 0)
return NULL;
--
2.13.6
More information about the libvir-list
mailing list