]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Fix a leak if VGAuth setup fails. Coverity issue
authorOliver Kurth <okurth@vmware.com>
Mon, 15 Apr 2019 18:33:00 +0000 (11:33 -0700)
committerOliver Kurth <okurth@vmware.com>
Mon, 15 Apr 2019 18:33:00 +0000 (11:33 -0700)
open-vm-tools/vgauth/serviceImpl/service.c

index 6779530814017f2a20a94273b81cfdc099ec1ea3..d4716526ca5862d17b88676ed1a58e56a49078ac 100644 (file)
@@ -1,5 +1,5 @@
 /*********************************************************
- * Copyright (C) 2011-2016 VMware, Inc. All rights reserved.
+ * Copyright (C) 2011-2016,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
@@ -173,6 +173,7 @@ ServiceCreatePublicConnection(ServiceConnection **returnConn) // OUT
 
    if (VGAUTH_E_OK != err) {
       Warning("%s: failed to setup public listen channel\n", __FUNCTION__);
+      ServiceConnectionShutdown(newConn);
       return err;
    }