From: Paul Park Date: Wed, 9 Aug 1995 21:26:35 +0000 (+0000) Subject: Fix Purify complaint X-Git-Tag: krb5-1.0-beta6~1341 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=fc8bdf39e336c503f4869671101afcd5932b32e3;p=krb5.git Fix Purify complaint git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6490 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/kadmin/v5server/srv_acl.c b/src/kadmin/v5server/srv_acl.c index f1e6bb14f..c3bda2ec1 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;