From: Chas Williams Date: Mon, 23 Apr 2001 08:41:34 +0000 (+0000) Subject: STABLE10-linux-cleanup-after-check-bad-parent-20010423 X-Git-Tag: openafs-stable-1_0_4~19 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=ffc19d6944456ede99f2eaab13d41f7d35e12396;p=packages%2Fo%2Fopenafs.git STABLE10-linux-cleanup-after-check-bad-parent-20010423 check_bad_parent doing lookups is incrementing i_count and nothing is cleaning up after it; this should make it happier --- diff --git a/src/afs/LINUX/osi_misc.c b/src/afs/LINUX/osi_misc.c index e40af34af..d9b05158f 100644 --- a/src/afs/LINUX/osi_misc.c +++ b/src/afs/LINUX/osi_misc.c @@ -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;