|
|
3857c4 |
From 8914b79dadae708672657e8879832d61c4f2cde1 Mon Sep 17 00:00:00 2001
|
|
|
3857c4 |
From: Cathy Avery <cavery@redhat.com>
|
|
|
3857c4 |
Date: Tue, 21 Apr 2020 10:38:45 +0200
|
|
|
3857c4 |
Subject: [PATCH 1/3] Fix a trivial memory leak in namespacetool.c.
|
|
|
3857c4 |
|
|
|
3857c4 |
RH-Author: Cathy Avery <cavery@redhat.com>
|
|
|
3857c4 |
Message-id: <20200331185439.5940-2-cavery@redhat.com>
|
|
|
3857c4 |
Patchwork-id: 94516
|
|
|
3857c4 |
O-Subject: [RHEL-8.2.1 open-vm-tools PATCH 1/2] Fix a trivial memory leak in namespacetool.c.
|
|
|
3857c4 |
Bugzilla: 1811729
|
|
|
3857c4 |
RH-Acked-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
3857c4 |
RH-Acked-by: Vitaly Kuznetsov <vkuznets@redhat.com>
|
|
|
3857c4 |
|
|
|
3857c4 |
commit 8dbd6e991315bb1b0a18c369c4d2bb165ef1f184
|
|
|
3857c4 |
Author: Oliver Kurth <okurth@vmware.com>
|
|
|
3857c4 |
Date: Tue, 17 Mar 2020 14:36:55 -0700
|
|
|
3857c4 |
|
|
|
3857c4 |
Fix a trivial memory leak in namespacetool.c.
|
|
|
3857c4 |
|
|
|
3857c4 |
Fix a memory leak reported by a customer based on their Coverity
|
|
|
3857c4 |
scans of open-vm-tools.
|
|
|
3857c4 |
|
|
|
3857c4 |
Signed-off-by: Cathy Avery <cavery@redhat.com>
|
|
|
3857c4 |
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
3857c4 |
---
|
|
|
3857c4 |
open-vm-tools/namespacetool/namespacetool.c | 1 +
|
|
|
3857c4 |
1 file changed, 1 insertion(+)
|
|
|
3857c4 |
|
|
|
3857c4 |
diff --git a/open-vm-tools/namespacetool/namespacetool.c b/open-vm-tools/namespacetool/namespacetool.c
|
|
|
3857c4 |
index 171e352..bfd003d 100644
|
|
|
3857c4 |
--- a/open-vm-tools/namespacetool/namespacetool.c
|
|
|
3857c4 |
+++ b/open-vm-tools/namespacetool/namespacetool.c
|
|
|
3857c4 |
@@ -233,6 +233,7 @@ GetValueFromStdin(gchar **data, gsize *length)
|
|
|
3857c4 |
*length = 0;
|
|
|
3857c4 |
}
|
|
|
3857c4 |
g_free(gErr);
|
|
|
3857c4 |
+ g_io_channel_unref(iochannel);
|
|
|
3857c4 |
return retVal;
|
|
|
3857c4 |
}
|
|
|
3857c4 |
|
|
|
3857c4 |
--
|
|
|
3857c4 |
1.8.3.1
|
|
|
3857c4 |
|