Blame SOURCES/ovt-Fix-a-memory-leak-reported-by-a-partner-from-their-C.patch

7f06d6
From 46b67e93a5458ef50eebfeb6a16e1df417274003 Mon Sep 17 00:00:00 2001
7f06d6
From: Cathy Avery <cavery@redhat.com>
7f06d6
Date: Sun, 25 Apr 2021 14:54:39 -0400
7f06d6
Subject: [PATCH] Fix a memory leak reported by a partner from their Coverity
7f06d6
 scans.
7f06d6
MIME-Version: 1.0
7f06d6
Content-Type: text/plain; charset=UTF-8
7f06d6
Content-Transfer-Encoding: 8bit
7f06d6
7f06d6
RH-Author: Cathy Avery (cavery)
7f06d6
RH-MergeRequest: 3: Fix a memory leak reported by a partner from their Coverity scans.
7f06d6
RH-Commit: [1/1] 31c94232c885c6d902cae33720a063ab0de401ce
7f06d6
RH-Bugzilla: 1935807
7f06d6
RH-Acked-by: Mohammed Gamal <mgamal@redhat.com>
7f06d6
RH-Acked-by: Philippe Mathieu-Daudé <philmd@redhat.com>
7f06d6
7f06d6
commit 4f7441d8cd20923e509ff819084693bbd8c928df
7f06d6
Author: John Wolfe <jwolfe@vmware.com>
7f06d6
Date:   Thu Mar 25 20:21:17 2021 -0700
7f06d6
7f06d6
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1935807
7f06d6
Brew: https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=36406926
7f06d6
Tested: Tested by QE
7f06d6
Upstream Status: origin/devel
7f06d6
Conflicts: None
7f06d6
7f06d6
    Fix a memory leak reported by a partner from their Coverity scans.
7f06d6
7f06d6
Signed-off-by: Cathy Avery <cavery@redhat.com>
7f06d6
---
7f06d6
 open-vm-tools/vgauth/serviceImpl/saml-xmlsec1.c | 8 +++-----
7f06d6
 1 file changed, 3 insertions(+), 5 deletions(-)
7f06d6
7f06d6
diff --git a/open-vm-tools/vgauth/serviceImpl/saml-xmlsec1.c b/open-vm-tools/vgauth/serviceImpl/saml-xmlsec1.c
7f06d6
index fbadee2c..aaa5082a 100644
7f06d6
--- a/open-vm-tools/vgauth/serviceImpl/saml-xmlsec1.c
7f06d6
+++ b/open-vm-tools/vgauth/serviceImpl/saml-xmlsec1.c
7f06d6
@@ -1,5 +1,5 @@
7f06d6
 /*********************************************************
7f06d6
- * Copyright (C) 2016-2020 VMware, Inc. All rights reserved.
7f06d6
+ * Copyright (C) 2016-2021 VMware, Inc. All rights reserved.
7f06d6
  *
7f06d6
  * This program is free software; you can redistribute it and/or modify it
7f06d6
  * under the terms of the GNU Lesser General Public License as published
7f06d6
@@ -872,7 +872,6 @@ VerifySubject(xmlDocPtr doc,
7f06d6
    xmlNodePtr nameIDNode;
7f06d6
    xmlNodePtr child;
7f06d6
    gchar *subjectVal = NULL;
7f06d6
-   gboolean retCode = FALSE;
7f06d6
    gboolean validSubjectFound = FALSE;
7f06d6
    xmlChar *tmp;
7f06d6
 
7f06d6
@@ -956,14 +955,13 @@ VerifySubject(xmlDocPtr doc,
7f06d6
       }
7f06d6
    }
7f06d6
 
7f06d6
+done:
7f06d6
    if (validSubjectFound && (NULL != subjectRet)) {
7f06d6
       *subjectRet = subjectVal;
7f06d6
    } else {
7f06d6
       g_free(subjectVal);
7f06d6
    }
7f06d6
-   retCode = validSubjectFound;
7f06d6
-done:
7f06d6
-   return retCode;
7f06d6
+   return validSubjectFound;
7f06d6
 }
7f06d6
 
7f06d6
 
7f06d6
-- 
7f06d6
2.27.0
7f06d6