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.

ticket: 8442 (new)
target_version: 1.14-next
target_version: 1.13-next
tags: pullup
  • Loading branch information
greghudson committed Aug 10, 2016
1 parent 2908839 commit 0c5f74a
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 @@ -1377,6 +1377,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 0c5f74a

Please sign in to comment.