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

Signed-off-by: Michal Privoznik <mpriv...@redhat.com>
---
 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

Reply via email to