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

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