diff options
author | Paul Park <pjpark@mit.edu> | 1995-08-09 21:26:35 +0000 |
---|---|---|
committer | Paul Park <pjpark@mit.edu> | 1995-08-09 21:26:35 +0000 |
commit | fc8bdf39e336c503f4869671101afcd5932b32e3 (patch) | |
tree | 737f01913964252da8b41bc59f3cea659c7e1e13 | |
parent | 422c9b7cb1299d2ef1ed5e69f8d3e71c858e17c1 (diff) | |
download | krb5-fc8bdf39e336c503f4869671101afcd5932b32e3.tar.gz krb5-fc8bdf39e336c503f4869671101afcd5932b32e3.tar.xz krb5-fc8bdf39e336c503f4869671101afcd5932b32e3.zip |
Fix Purify complaint
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6490 dc483132-0cff-0310-8789-dd5450dbe970
-rw-r--r-- | src/kadmin/v5server/srv_acl.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/kadmin/v5server/srv_acl.c b/src/kadmin/v5server/srv_acl.c index f1e6bb14f8..c3bda2ec17 100644 --- a/src/kadmin/v5server/srv_acl.c +++ b/src/kadmin/v5server/srv_acl.c @@ -194,13 +194,15 @@ static void acl_free_entries() { aent_t *ap; + aent_t *np; DPRINT(DEBUG_CALLS, acl_debug_level, ("* acl_free_entries()\n")); - for (ap=acl_list_head; ap; ap = ap->ae_next) { + for (ap=acl_list_head; ap; ap = np) { if (ap->ae_name) free(ap->ae_name); if (ap->ae_principal) krb5_free_principal((krb5_context) NULL, ap->ae_principal); + np = ap->ae_next; free(ap); } acl_list_head = acl_list_tail = (aent_t *) NULL; |