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

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