[libvirt-php][PATCH 6/7] installation_get_xml: Resolve couple of memleaks

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



There are still some, but it's definitely better now.

Signed-off-by: Michal Privoznik <mprivozn@xxxxxxxxxx>
---
 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

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]
  Powered by Linux