[PATCH 2/2] domain_conf: Don't leak def->os.firmwareFeatures

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

 



The firmwareFeatures member of virDomainOSDef struct is allocated
in virDomainDefParseBootFirmwareOptions() but never freed.

Signed-off-by: Michal Privoznik <mprivozn@xxxxxxxxxx>
---
 src/conf/domain_conf.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c
index 3aefa8f335..9bf12ff599 100644
--- a/src/conf/domain_conf.c
+++ b/src/conf/domain_conf.c
@@ -3532,6 +3532,7 @@ virDomainOSDefClear(virDomainOSDef *os)
 {
     size_t i;
 
+    g_free(os->firmwareFeatures);
     g_free(os->machine);
     g_free(os->init);
     for (i = 0; os->initargv && os->initargv[i]; i++)
-- 
2.26.2




[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