|
|
d76c62 |
From 97d7066d53be18a9638d28217e2a4216fa422a53 Mon Sep 17 00:00:00 2001
|
|
|
d76c62 |
Message-Id: <97d7066d53be18a9638d28217e2a4216fa422a53@dist-git>
|
|
|
d76c62 |
From: Michal Privoznik <mprivozn@redhat.com>
|
|
|
d76c62 |
Date: Fri, 21 Feb 2020 14:32:11 +0100
|
|
|
d76c62 |
Subject: [PATCH] virDomainNetDefClear: Free @persistent name
|
|
|
d76c62 |
MIME-Version: 1.0
|
|
|
d76c62 |
Content-Type: text/plain; charset=UTF-8
|
|
|
d76c62 |
Content-Transfer-Encoding: 8bit
|
|
|
d76c62 |
|
|
|
d76c62 |
The persistent alias name @persistent is allocated in
|
|
|
d76c62 |
virDomainNetDefParseXML() but never freed.
|
|
|
d76c62 |
|
|
|
d76c62 |
==119642== 22 bytes in 2 blocks are definitely lost in loss record 178 of 671
|
|
|
d76c62 |
==119642== at 0x483579F: malloc (vg_replace_malloc.c:309)
|
|
|
d76c62 |
==119642== by 0x58F89F1: xmlStrndup (in /usr/lib64/libxml2.so.2.9.9)
|
|
|
d76c62 |
==119642== by 0x4BA3B74: virXMLPropString (virxml.c:520)
|
|
|
d76c62 |
==119642== by 0x4BDB0C5: virDomainNetDefParseXML (domain_conf.c:11876)
|
|
|
d76c62 |
==119642== by 0x4BF9EF4: virDomainDefParseXML (domain_conf.c:21196)
|
|
|
d76c62 |
==119642== by 0x4BFCD5B: virDomainDefParseNode (domain_conf.c:21943)
|
|
|
d76c62 |
==119642== by 0x4BFCC36: virDomainDefParse (domain_conf.c:21901)
|
|
|
d76c62 |
==119642== by 0x4BFCCCB: virDomainDefParseFile (domain_conf.c:21924)
|
|
|
d76c62 |
==119642== by 0x114A9D: testCompareXMLToArgv (qemuxml2argvtest.c:452)
|
|
|
d76c62 |
==119642== by 0x13894F: virTestRun (testutils.c:143)
|
|
|
d76c62 |
==119642== by 0x11F46E: mymain (qemuxml2argvtest.c:1316)
|
|
|
d76c62 |
==119642== by 0x13A60E: virTestMain (testutils.c:839
|
|
|
d76c62 |
|
|
|
d76c62 |
Fixes: fb0509d06ac57434c2edbd81ee63deb32a0e598a
|
|
|
d76c62 |
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
|
|
|
d76c62 |
Reviewed-by: Ján Tomko <jtomko@redhat.com>
|
|
|
d76c62 |
(cherry picked from commit 2ab278ec758b09398ea335626a41b453cdda6da7)
|
|
|
d76c62 |
Signed-off-by: Ján Tomko <jtomko@redhat.com>
|
|
|
d76c62 |
https://bugzilla.redhat.com/show_bug.cgi?id=1805742
|
|
|
d76c62 |
Message-Id: <d64d26b106c91220bdcb95cd3dd90229fe449cd2.1582291906.git.jtomko@redhat.com>
|
|
|
d76c62 |
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
|
|
|
d76c62 |
---
|
|
|
d76c62 |
src/conf/domain_conf.c | 1 +
|
|
|
d76c62 |
1 file changed, 1 insertion(+)
|
|
|
d76c62 |
|
|
|
d76c62 |
diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c
|
|
|
d76c62 |
index 5c11f49463..8a5f14d6cb 100644
|
|
|
d76c62 |
--- a/src/conf/domain_conf.c
|
|
|
d76c62 |
+++ b/src/conf/domain_conf.c
|
|
|
d76c62 |
@@ -2439,6 +2439,7 @@ virDomainNetDefClear(virDomainNetDefPtr def)
|
|
|
d76c62 |
|
|
|
d76c62 |
VIR_FREE(def->backend.tap);
|
|
|
d76c62 |
VIR_FREE(def->backend.vhost);
|
|
|
d76c62 |
+ VIR_FREE(def->teaming.persistent);
|
|
|
d76c62 |
VIR_FREE(def->virtPortProfile);
|
|
|
d76c62 |
VIR_FREE(def->script);
|
|
|
d76c62 |
VIR_FREE(def->domain_name);
|
|
|
d76c62 |
--
|
|
|
d76c62 |
2.25.1
|
|
|
d76c62 |
|