]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Fix leak in gss_acquire_cred_with_password 286/head
authorGreg Hudson <ghudson@mit.edu>
Fri, 19 Jun 2015 21:16:52 +0000 (17:16 -0400)
committerGreg Hudson <ghudson@mit.edu>
Thu, 2 Jul 2015 17:36:27 +0000 (13:36 -0400)
The target_mechs array needs to be freed on successful return.

ticket: 8204 (new)
target_version: 1.13.3
tags: pullup

src/lib/gssapi/mechglue/g_acquire_cred_with_pw.c

index f290f8a5608c47a37b26258f705a7d5062a4b471..7835d59726d3576d89159187ebcc68203f96128b 100644 (file)
@@ -496,6 +496,9 @@ gss_add_cred_with_password(minor_status, input_cred_handle,
                                            selected_mech,
                                           &allocated_name);
 
+    if (target_mechs)
+       (void)gss_release_oid_set(&temp_minor_status, &target_mechs);
+
     return (GSS_S_COMPLETE);
 
 errout: