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