From: Oliver Kurth Date: Tue, 17 Mar 2020 21:36:55 +0000 (-0700) Subject: Fix a trivial memory leak in namespacetool.c. X-Git-Tag: stable-11.1.0~33 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8dbd6e991315bb1b0a18c369c4d2bb165ef1f184;p=thirdparty%2Fopen-vm-tools.git 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. --- diff --git a/open-vm-tools/namespacetool/namespacetool.c b/open-vm-tools/namespacetool/namespacetool.c index 3e3319b8c..25caf2214 100644 --- a/open-vm-tools/namespacetool/namespacetool.c +++ b/open-vm-tools/namespacetool/namespacetool.c @@ -234,6 +234,7 @@ GetValueFromStdin(gchar **data, gsize *length) *length = 0; } g_free(gErr); + g_io_channel_unref(iochannel); return retVal; }