Fix Purify complaint
authorPaul Park <pjpark@mit.edu>
Wed, 9 Aug 1995 21:26:35 +0000 (21:26 +0000)
committerPaul Park <pjpark@mit.edu>
Wed, 9 Aug 1995 21:26:35 +0000 (21:26 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6490 dc483132-0cff-0310-8789-dd5450dbe970

src/kadmin/v5server/srv_acl.c

index f1e6bb14f8e94dcfc5391b48b269965400b44f7b..c3bda2ec170c65233f7bfc109d3fee8648532514 100644 (file)
@@ -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;