linux-cleanup-after-check-bad-parent-20010416
authorChas Williams <chas@cmf.nrl.navy.mil>
Mon, 16 Apr 2001 22:09:15 +0000 (22:09 +0000)
committerDerrick Brashear <shadow@dementia.org>
Mon, 16 Apr 2001 22:09:15 +0000 (22:09 +0000)
check_bad_parent doing lookups is incrementing i_count and
nothing is cleaning up after it; this should make it happier

src/afs/LINUX/osi_misc.c

index e40af34..d9b0515 100644 (file)
@@ -411,7 +411,9 @@ void check_bad_parent(struct dentry *dp)
                 ICL_TYPE_POINTER, avc,
                 ICL_TYPE_POINTER, dp);
     }
-    
+    if (avc)
+       AFS_RELE(avc);
+    crfree(credp);
   } /* if bad parent */
  
   return;