Skip to content

Commit

Permalink
Fix leak in DB2 krb5_db_promote() implementation
Browse files Browse the repository at this point in the history
In krb5_db2_merge_nra_iterator(), free the entry loaded from the
source DB.

(cherry picked from commit 0c5f74a)

ticket: 8442
version_fixed: 1.13.7
  • Loading branch information
greghudson authored and tlyu committed Sep 2, 2016
1 parent d3b8c7c commit ac12d2c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/plugins/kdb/db2/kdb_db2.c
Original file line number Diff line number Diff line change
Expand Up @@ -1399,6 +1399,7 @@ krb5_db2_merge_nra_iterator(krb5_pointer ptr, krb5_db_entry *entry)
retval = 0;
}

krb5_db_free_principal(nra->kcontext, s_entry);
return retval;
}

Expand Down

0 comments on commit ac12d2c

Please sign in to comment.