Blame SOURCES/ovt-Fix-a-trivial-memory-leak-in-namespacetool.c.patch

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