From f5626146057b01e07c9491183bc09f8d190a1d4c Mon Sep 17 00:00:00 2001 From: Cathy Avery Date: Thu, 25 Jul 2019 12:32:31 +0200 Subject: [PATCH 08/16] Fix a trivial Coverity-reported memory leak in vgauth/cli/main.c. RH-Author: Cathy Avery Message-id: <20190725123239.18274-9-cavery@redhat.com> Patchwork-id: 89715 O-Subject: [RHEL8.1 open-vm-tools PATCH 08/16] Fix a trivial Coverity-reported memory leak in vgauth/cli/main.c. Bugzilla: 1602648 RH-Acked-by: Vitaly Kuznetsov RH-Acked-by: Miroslav Rezanina commit 544cf1363c78d1d8c75e57d560b3650b5f667c64 Author: Oliver Kurth Date: Wed May 8 15:27:18 2019 -0700 Fix a trivial Coverity-reported memory leak in vgauth/cli/main.c. Call Pref_Shutdown to close the PrefHandle. Signed-off-by: Cathy Avery Conflicts: Minor copyright issue Signed-off-by: Miroslav Rezanina --- open-vm-tools/vgauth/cli/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vgauth/cli/main.c b/vgauth/cli/main.c index 7209e95..6f69f19 100644 --- a/vgauth/cli/main.c +++ b/vgauth/cli/main.c @@ -1,5 +1,5 @@ /********************************************************* - * Copyright (C) 2011-2016 VMware, Inc. All rights reserved. + * Copyright (C) 2011-2019 VMware, Inc. All rights reserved. * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published @@ -658,6 +658,7 @@ next: } VGAuth_Shutdown(ctx); + Pref_Shutdown(prefs); g_free(appName); return (err == VGAUTH_E_OK) ? 0 : -1; } -- 1.8.3.1