|
|
0a7476 |
From b5f39d1ad467ab712d41f693f998c6a9e3046b4f Mon Sep 17 00:00:00 2001
|
|
|
0a7476 |
Message-Id: <b5f39d1ad467ab712d41f693f998c6a9e3046b4f@dist-git>
|
|
|
0a7476 |
From: Erik Skultety <eskultet@redhat.com>
|
|
|
0a7476 |
Date: Wed, 10 Apr 2019 10:25:01 +0200
|
|
|
0a7476 |
Subject: [PATCH] RHEL: conf: storage: Fix a memory leak in
|
|
|
0a7476 |
virStoragePoolDefParseSource
|
|
|
0a7476 |
MIME-Version: 1.0
|
|
|
0a7476 |
Content-Type: text/plain; charset=UTF-8
|
|
|
0a7476 |
Content-Transfer-Encoding: 8bit
|
|
|
0a7476 |
|
|
|
0a7476 |
https://bugzilla.redhat.com/show_bug.cgi?id=1584663
|
|
|
0a7476 |
|
|
|
0a7476 |
RHEL-only
|
|
|
0a7476 |
|
|
|
0a7476 |
Commit acf8c561 backported an upstream memory leak in @ver variable that
|
|
|
0a7476 |
was later fixed upstream by using AUTOFREE which is not available
|
|
|
0a7476 |
downstream, so we need a downstream fix. The issue was reported by
|
|
|
0a7476 |
coverity.
|
|
|
0a7476 |
|
|
|
0a7476 |
Signed-off-by: Erik Skultety <eskultet@redhat.com>
|
|
|
0a7476 |
Message-Id: <b6665d1280309b887aa237c71cba7b66cbe593f2.1554884692.git.eskultet@redhat.com>
|
|
|
0a7476 |
Reviewed-by: Ján Tomko <jtomko@redhat.com>
|
|
|
0a7476 |
---
|
|
|
0a7476 |
src/conf/storage_conf.c | 1 +
|
|
|
0a7476 |
1 file changed, 1 insertion(+)
|
|
|
0a7476 |
|
|
|
0a7476 |
diff --git a/src/conf/storage_conf.c b/src/conf/storage_conf.c
|
|
|
0a7476 |
index 5a124a0a2f..e171425239 100644
|
|
|
0a7476 |
--- a/src/conf/storage_conf.c
|
|
|
0a7476 |
+++ b/src/conf/storage_conf.c
|
|
|
0a7476 |
@@ -566,6 +566,7 @@ virStoragePoolDefParseSource(xmlXPathContextPtr ctxt,
|
|
|
0a7476 |
cleanup:
|
|
|
0a7476 |
ctxt->node = relnode;
|
|
|
0a7476 |
|
|
|
0a7476 |
+ VIR_FREE(ver);
|
|
|
0a7476 |
VIR_FREE(port);
|
|
|
0a7476 |
VIR_FREE(nodeset);
|
|
|
0a7476 |
virStorageAuthDefFree(authdef);
|
|
|
0a7476 |
--
|
|
|
0a7476 |
2.21.0
|
|
|
0a7476 |
|