Skip to content

Commit

Permalink
Fix leak in gss_acquire_cred_with_password
Browse files Browse the repository at this point in the history
The target_mechs array needs to be freed on successful return.

ticket: 8204 (new)
target_version: 1.13.3
tags: pullup
  • Loading branch information
greghudson committed Jul 2, 2015
1 parent cf39ed3 commit 02a85d7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lib/gssapi/mechglue/g_acquire_cred_with_pw.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 02a85d7

Please sign in to comment.