Blame SOURCES/ovt-Fix-a-trivial-Coverity-reported-memory-leak-in-vgaut.patch

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