|
|
604589 |
From 2b3c17a1036e1b0db85fef8b1033505949cf7079 Mon Sep 17 00:00:00 2001
|
|
|
604589 |
From: Cathy Avery <cavery@redhat.com>
|
|
|
604589 |
Date: Thu, 25 Jul 2019 12:32:26 +0200
|
|
|
604589 |
Subject: [PATCH 03/16] Fix a leak if VGAuth setup fails. Coverity issue
|
|
|
604589 |
|
|
|
604589 |
RH-Author: Cathy Avery <cavery@redhat.com>
|
|
|
604589 |
Message-id: <20190725123239.18274-4-cavery@redhat.com>
|
|
|
604589 |
Patchwork-id: 89709
|
|
|
604589 |
O-Subject: [RHEL8.1 open-vm-tools PATCH 03/16] Fix a leak if VGAuth setup fails. Coverity issue
|
|
|
604589 |
Bugzilla: 1602648
|
|
|
604589 |
RH-Acked-by: Vitaly Kuznetsov <vkuznets@redhat.com>
|
|
|
604589 |
RH-Acked-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
604589 |
|
|
|
604589 |
commit 82169f198925c9aa27bd04fd665eac67396adbe7
|
|
|
604589 |
Author: Oliver Kurth <okurth@vmware.com>
|
|
|
604589 |
Date: Mon Apr 15 11:33:00 2019 -0700
|
|
|
604589 |
|
|
|
604589 |
Fix a leak if VGAuth setup fails. Coverity issue
|
|
|
604589 |
|
|
|
604589 |
Signed-off-by: Cathy Avery <cavery@redhat.com>
|
|
|
604589 |
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
604589 |
---
|
|
|
604589 |
open-vm-tools/vgauth/serviceImpl/service.c | 3 ++-
|
|
|
604589 |
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
604589 |
|
|
|
604589 |
diff --git a/vgauth/serviceImpl/service.c b/vgauth/serviceImpl/service.c
|
|
|
604589 |
index 6779530..d471652 100644
|
|
|
604589 |
--- a/vgauth/serviceImpl/service.c
|
|
|
604589 |
+++ b/vgauth/serviceImpl/service.c
|
|
|
604589 |
@@ -1,5 +1,5 @@
|
|
|
604589 |
/*********************************************************
|
|
|
604589 |
- * Copyright (C) 2011-2016 VMware, Inc. All rights reserved.
|
|
|
604589 |
+ * Copyright (C) 2011-2016,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 |
@@ -173,6 +173,7 @@ ServiceCreatePublicConnection(ServiceConnection **returnConn) // OUT
|
|
|
604589 |
|
|
|
604589 |
if (VGAUTH_E_OK != err) {
|
|
|
604589 |
Warning("%s: failed to setup public listen channel\n", __FUNCTION__);
|
|
|
604589 |
+ ServiceConnectionShutdown(newConn);
|
|
|
604589 |
return err;
|
|
|
604589 |
}
|
|
|
604589 |
|
|
|
604589 |
--
|
|
|
604589 |
1.8.3.1
|
|
|
604589 |
|