Blame SOURCES/Fix-leak-of-mech-OID-in-gssi_inquire_context.patch

d3abf8
From 7777d261923e0f0c3bd9cb2b7f0c2ac81b83f2c3 Mon Sep 17 00:00:00 2001
d3abf8
From: Robbie Harwood <rharwood@redhat.com>
d3abf8
Date: Wed, 26 Aug 2020 13:36:50 -0400
d3abf8
Subject: [PATCH] Fix leak of mech OID in gssi_inquire_context()
d3abf8
d3abf8
The name it creates holds a copy of the OID, which we need to release.
d3abf8
d3abf8
Signed-off-by: Robbie Harwood <rharwood@redhat.com>
d3abf8
(cherry picked from commit 482349fa6bd536471216a898713c83260c78c08d)
d3abf8
(cherry picked from commit ce271e38be223a9442efd406c9a8fa961930e35b)
d3abf8
---
d3abf8
 src/mechglue/gpp_import_and_canon_name.c | 2 ++
d3abf8
 1 file changed, 2 insertions(+)
d3abf8
d3abf8
diff --git a/src/mechglue/gpp_import_and_canon_name.c b/src/mechglue/gpp_import_and_canon_name.c
d3abf8
index 745be20..7d6829f 100644
d3abf8
--- a/src/mechglue/gpp_import_and_canon_name.c
d3abf8
+++ b/src/mechglue/gpp_import_and_canon_name.c
d3abf8
@@ -257,6 +257,8 @@ OM_uint32 gssi_release_name(OM_uint32 *minor_status,
d3abf8
         return GSS_S_BAD_NAME;
d3abf8
     }
d3abf8
 
d3abf8
+    (void)gss_release_oid(&rmin, &name->mech_type);
d3abf8
+
d3abf8
     rmaj = gpm_release_name(&rmin, &name->remote);
d3abf8
 
d3abf8
     if (name->local) {